]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1393 Angle constraint : incorrect angle displayed. solution: do not select...
authornds <nds@opencascade.com>
Fri, 8 Apr 2016 08:20:42 +0000 (11:20 +0300)
committernds <nds@opencascade.com>
Fri, 8 Apr 2016 08:21:46 +0000 (11:21 +0300)
src/PartSet/PartSet_WidgetSketchCreator.cpp

index 131106e74a6b9c1c51c4a339cd83117a6b6f6b35..ade61b33434f21edda95113fedde058b49ce0eb5 100644 (file)
@@ -309,9 +309,11 @@ bool PartSet_WidgetSketchCreator::startSketchOperation(const QList<ModuleBase_Vi
   ResultPtr aResult = std::dynamic_pointer_cast<ModelAPI_Result>(aValue->object());
   /// sketch should not started by object(face) selected as global. If Local face is selected,
   /// sketch is started
-  if (aResult.get() && aValue->shape().get() && aResult->shape()->isEqual(aValue->shape()))
-    return aSketchStarted;
-
+  if (aResult.get() && aValue->shape().get() && aResult->shape()->isEqual(aValue->shape())) {
+    ResultConstructionPtr aConstruction = std::dynamic_pointer_cast<ModelAPI_ResultConstruction>(aResult);
+    if (!aConstruction.get() || !aConstruction->isInfinite())
+      return aSketchStarted;
+  }
   aSketchStarted = true;
 
   // manually deactivation because the widget was not activated as has no focus acceptin controls