From 2c07938e0d2177b91c7b54341a642653098fdfbe Mon Sep 17 00:00:00 2001 From: lorenz Date: Mon, 5 Jul 2021 00:01:02 +0200 Subject: [PATCH] Remove Attachment deprecation warning for version >=0.19 --- 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 627b157..5bb5c99 100644 --- a/freecad/gears/features.py +++ b/freecad/gears/features.py @@ -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)