]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #3076 previous commit regression
authormpv <mpv@opencascade.com>
Thu, 31 Oct 2019 15:42:39 +0000 (18:42 +0300)
committervsv <vsv@opencascade.com>
Wed, 6 Nov 2019 08:27:42 +0000 (11:27 +0300)
src/Model/Model_AttributeSelection.cpp

index 091ae432fc4f9cd3512fcde964666179286ebf1d..479df0e05a5df87db9023ba1aa40413c32035d3f 100644 (file)
@@ -618,7 +618,9 @@ bool Model_AttributeSelection::update()
         split(aContext, aNewShape, anOldShape.ShapeType());
       }
       // for issue #3076 check that the new value belongs to the new context
-      if (!aNewShape.IsNull() && !aContextShape.IsNull()) {
+      if (!aNewShape.IsNull() && !aContextShape.IsNull() &&
+          (aNewShape.ShapeType() == TopAbs_VERTEX || aNewShape.ShapeType() == TopAbs_EDGE ||
+           aNewShape.ShapeType() == TopAbs_FACE)) {
         TopExp_Explorer anExp(aContextShape, aNewShape.ShapeType());
         for(; anExp.More(); anExp.Next()) {
           if (anExp.Current().IsSame(aNewShape))