From b368d3937c709c8b64e879b488c1961bd6571e5f Mon Sep 17 00:00:00 2001 From: Me Date: Thu, 28 Oct 2021 12:52:04 -0600 Subject: [PATCH] Fix #82 by float conversion int(float( version_string )) Fix #63 by change version check from 19 to 18 (required for Mac users according to issue). --- freecad/gears/features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freecad/gears/features.py b/freecad/gears/features.py index 9d93b0b..8cf4f9d 100644 --- a/freecad/gears/features.py +++ b/freecad/gears/features.py @@ -83,7 +83,7 @@ def make_attachable(self, obj): # Needed to make this object "attachable", # aka able to attach parameterically to other objects # cf. https://wiki.freecadweb.org/Scripted_objects_with_attachment - if int(App.Version()[1]) >= 19: + if int(float(App.Version()[1])) >= 18: obj.addExtension('Part::AttachExtensionPython') else: obj.addExtension('Part::AttachExtensionPython', obj)