We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcbff39 commit c27bc39Copy full SHA for c27bc39
1 file changed
freecad/gridfinity_workbench/check_version.py
@@ -27,6 +27,17 @@ def migrate_object_version(obj: fc.DocumentObject) -> None: # noqa: C901
27
28
### v0.11.9 Changes ###
29
30
+ if (hasattr(obj, "Baseplate") and
31
+ hasattr(obj, "MagnetHoles") and
32
+ not hasattr(obj, "MagnetHoleChamfer")):
33
+ # Add property for the magnet hole chamfer.
34
+ obj.addProperty(
35
+ "App::PropertyLength",
36
+ "MagnetHoleChamfer",
37
+ "GridfinityNonStandard",
38
+ "The depth at which magnet hole chamfer starts.",
39
+ ).MagnetHoleChamfer = 0.25
40
+
41
if hasattr(obj, "MagnetHoles"):
42
# Add properties for the crush ribs to hold magnets.
43
if not hasattr(obj, "CrushRibsCount"):
0 commit comments