From cff9add943f51b72e5489b92ad86135351aae44d Mon Sep 17 00:00:00 2001 From: mpv Date: Wed, 16 Dec 2015 16:13:43 +0300 Subject: [PATCH] Fix for the issue #691: recovery of the Box macro --- src/PythonAPI/model/features/extrusion.py | 5 ++++- src/PythonAddons/macros/box/feature.py | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/PythonAPI/model/features/extrusion.py b/src/PythonAPI/model/features/extrusion.py index a63b09369..f0cb7c403 100644 --- a/src/PythonAPI/model/features/extrusion.py +++ b/src/PythonAPI/model/features/extrusion.py @@ -131,7 +131,10 @@ class Extrusion(Interface): See __init__. """ - self.__clear() + # MPV: with "clear" calling here the extrusion all the time becomes modificed (height is set to + # zero and then to actual value, but this function is used in macro Bax, that causes "modified" + # values without changes that causes cyclic dependency + #self.__clear() self._fillAttribute(self._CreationMethod, "BySizes") self._fillAttribute(self._to_size, to_size) self._fillAttribute(self._from_size, from_size) diff --git a/src/PythonAddons/macros/box/feature.py b/src/PythonAddons/macros/box/feature.py index ca037ba1f..1d3f02f07 100644 --- a/src/PythonAddons/macros/box/feature.py +++ b/src/PythonAddons/macros/box/feature.py @@ -87,8 +87,7 @@ class BoxFeature(model.Feature): """F.execute() -- execute the feature""" # Retrieving the user inputs width = self.getRealInput(self.WIDTH_ID()) - length = self.getRealInpuut(self.WIDTH_ID()) - length = self.getRealInt(self.LENGTH_ID()) + length = self.getRealInput(self.LENGTH_ID()) height = self.getRealInput(self.HEIGHT_ID()) # Editing the box -- 2.39.2