From 830eb5e9f0234fc84a50d6f392dd1d2e6d0337d0 Mon Sep 17 00:00:00 2001 From: lorenz Date: Tue, 13 Oct 2020 15:04:27 +0200 Subject: [PATCH] crown-gear: rename property construct ->editing-preview --- freecad/gears/features.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/freecad/gears/features.py b/freecad/gears/features.py index 8ff5a19..072cce9 100644 --- a/freecad/gears/features.py +++ b/freecad/gears/features.py @@ -306,7 +306,7 @@ class CrownGear(object): obj.addProperty("App::PropertyInteger", "num_profiles", "accuracy", "number of profiles used for loft") obj.addProperty("App::PropertyBool", - "construct", "accuracy", "number of profiles used for loft") + "preview_mode", "preview", "if true no boolean operation is done") obj.teeth = 15 obj.other_teeth = 15 obj.module = '1. mm' @@ -318,8 +318,8 @@ class CrownGear(object): self.obj = obj obj.Proxy = self - App.Console.PrintMessage("Gear module: Crown gear created, construct mode = true for improved performance. "\ - "Set construct property to false when ready to cut teeth.") + App.Console.PrintMessage("Gear module: Crown gear created, preview_mode = true for improved performance. "\ + "Set preview_mode property to false when ready to cut teeth.") def profile(self, m, r, r0, t_c, t_i, alpha_w, y0, y1, y2): r_ew = m * t_i / 2 @@ -387,7 +387,7 @@ class CrownGear(object): loft = makeLoft(polies, True) rot = App.Matrix() rot.rotateZ(2 * np.pi / t) - if fp.construct: + if fp.preview_mode: cut_shapes = [solid] for _ in range(t): loft = loft.transformGeometry(rot)