]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Rectangle feature: coincidence debug: 1. lines should not be updated in execute becau...
authornds <nds@opencascade.com>
Tue, 1 Mar 2016 13:37:28 +0000 (16:37 +0300)
committernds <nds@opencascade.com>
Tue, 1 Mar 2016 13:37:28 +0000 (16:37 +0300)
src/PartSet/PartSet_WidgetPoint2d.cpp
src/PythonAddons/macros/rectangle/feature.py

index 03cd49c320831309573364b0a1d39589d9c05808..813741c88172a86b3a5f9ead67acb576d3b80bfc 100644 (file)
@@ -418,7 +418,7 @@ void PartSet_WidgetPoint2D::setConstraintWith(const ObjectPtr& theObject)
       ModelAPI_AttributeRefAttr>(aData->attribute(SketchPlugin_Constraint::ENTITY_B()));
   aRef2->setObject(theObject);
 
-  aFeature->execute();
+  Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_CREATED));
 }
 
 void PartSet_WidgetPoint2D::onMouseRelease(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent)
index aaa65512a20296f9696a03efefb497c6ce131b34..3679577c85d26df44b6a4ccc2427bc9369bd357f 100644 (file)
@@ -106,8 +106,8 @@ class SketchPlugin_Rectangle(model.Feature):
                 aRefAttrB.setAttr(aLine.attribute("StartPoint"))
             # Flags which show horizontal or vertical constraint is build for correponding line
             self.__isHV = [False, False, False, False]
-        # Update coordinates of created lines
-        self.updateLines()
+            # Update coordinates of created lines
+            self.updateLines()
         # Add horizontal and vertical constraint for the lines which already have result
         for i in range (0, aNbLines):
             if self.__isHV[i]: