Skip to content

Commit

Permalink
Fix looooo#82 by float conversion int(float( version_string ))
Browse files Browse the repository at this point in the history
Fix looooo#63 by change version check from 19 to 18 (required for Mac users according to issue).
  • Loading branch information
Me committed Oct 28, 2021
1 parent 6ce203e commit b368d39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freecad/gears/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b368d39

Please sign in to comment.