Salome HOME
Fix for the problem of update of the selection attribute value after it becomes inval...
[modules/shaper.git] / src / Model / Model_AttributeSelection.cpp
index 2337fb0b58d2bed9e4d3027814fb3e809048f7eb..7a06523911063668e287262f956f9f49f1791dd1 100644 (file)
@@ -774,6 +774,8 @@ void Model_AttributeSelection::selectBody(
         aFeatureOwner->removeResults(0, false, false);
     }
     aSel.Select(aNewSub, aNewContext);
+    // face may become divided after the model update, so, new labels may be added to the scope
+    myScope.Clear();
 
     if (aEraseResults) { // flash after Select : in Groups it makes selection with shift working
       static Events_Loop* aLoop = Events_Loop::loop();