From a77dbd7613ee788b69415a11c06542387f38371b Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 31 Oct 2019 18:42:39 +0300 Subject: [PATCH] Fix for the issue #3076 previous commit regression --- src/Model/Model_AttributeSelection.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)) -- 2.39.2