]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Model/Model_AttributeSelection.cpp
Salome HOME
Fix for #24260 [CEA] Fatal error gp_Dir() input vector has zero norm when loading...
[modules/shaper.git] / src / Model / Model_AttributeSelection.cpp
index 21cb7ee6eea0c727911709f3198dfa62a1dbabd0..432c6f1c2e7740d37293b040c46aafd89823e727 100644 (file)
@@ -604,6 +604,8 @@ bool Model_AttributeSelection::update()
     aResult = aSelector.restore(aContextShape);
     bool aWasInvalid = aSelLab.IsAttribute(kINVALID_SELECTION);
     setInvalidIfFalse(aSelLab, aResult);
+    if (!aResult)
+      aWasInvalid = false;
 
     TopoDS_Shape aNewShape;
     if (aSelLab.FindAttribute(TNaming_NamedShape::GetID(), aNS))