From: mpv Date: Wed, 16 Dec 2015 13:13:43 +0000 (+0300) Subject: Fix for the issue #691: recovery of the Box macro X-Git-Tag: V_2.1.0~170 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cff9add943f51b72e5489b92ad86135351aae44d;p=modules%2Fshaper.git Fix for the issue #691: recovery of the Box macro --- 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