Remove Attachment deprecation warning for version >=0.19

This commit is contained in:
lorenz
2021-07-05 00:01:02 +02:00
committed by GitHub
parent 6c6176b089
commit 2c07938e0d

View File

@@ -83,7 +83,7 @@ class BaseGear(object):
# 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]) >= 20:
if int(App.Version()[1]) >= 19:
obj.addExtension('Part::AttachExtensionPython')
else:
obj.addExtension('Part::AttachExtensionPython', obj)