]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #691: recovery of the Box macro
authormpv <mpv@opencascade.com>
Wed, 16 Dec 2015 13:13:43 +0000 (16:13 +0300)
committermpv <mpv@opencascade.com>
Wed, 16 Dec 2015 13:13:43 +0000 (16:13 +0300)
src/PythonAPI/model/features/extrusion.py
src/PythonAddons/macros/box/feature.py

index a63b093697965c52dde2365446b5338907c3525b..f0cb7c403a37286c6a9e7faae74a24345b5f6b7c 100644 (file)
@@ -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)
index ca037ba1f14d813a64c592e984bfce370ec610e4..1d3f02f073d7c48374a4d326969bd9ed33441ab7 100644 (file)
@@ -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