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)