From ccdfad4a90672cdc7827d42720ecd9c2b398ba1a Mon Sep 17 00:00:00 2001 From: looooo Date: Tue, 13 Oct 2020 15:14:35 +0200 Subject: [PATCH] crowngear: properties: preview_edit -> preview_mode --- freecad/gears/features.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/freecad/gears/features.py b/freecad/gears/features.py index 752e747..607d520 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", - "preview_edit", "preview", "if true no boolean operation is done") + "preview_mode", "preview", "if true no boolean operation is done") obj.teeth = 15 obj.other_teeth = 15 obj.module = '1. mm' @@ -314,7 +314,7 @@ class CrownGear(object): obj.height = '2. mm' obj.thickness = '5 mm' obj.num_profiles = 4 - obj.preview_edit = True + obj.preview_mode = True self.obj = obj obj.Proxy = self @@ -387,7 +387,7 @@ class CrownGear(object): loft = makeLoft(polies, True) rot = App.Matrix() rot.rotateZ(2 * np.pi / t) - if fp.preview_edit: + if fp.preview_mode: cut_shapes = [solid] for _ in range(t): loft = loft.transformGeometry(rot)