From: mpv Date: Thu, 31 Oct 2019 15:42:39 +0000 (+0300) Subject: Fix for the issue #3076 previous commit regression X-Git-Tag: V9_5_0a1~167^2~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8d9373fd00a410b2e9fc7ac6b0653716314ded2d;p=modules%2Fshaper.git Fix for the issue #3076 previous commit regression --- diff --git a/src/Model/Model_AttributeSelection.cpp b/src/Model/Model_AttributeSelection.cpp index 091ae432f..479df0e05 100644 --- a/src/Model/Model_AttributeSelection.cpp +++ b/src/Model/Model_AttributeSelection.cpp @@ -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))