From: nds Date: Thu, 21 May 2015 08:06:05 +0000 (+0300) Subject: A correction for the case: create a sketch, create a part, start creation of an extru... X-Git-Tag: V_1.2.0~126 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=09140d7d346770792453ea606fd2b633a823a1e5;p=modules%2Fshaper.git A correction for the case: create a sketch, create a part, start creation of an extrusion. The incorrect result is sketch was not highlightable. --- diff --git a/src/Model/Model_AttributeReference.cpp b/src/Model/Model_AttributeReference.cpp index 8a44eec0e..a6ac5e31a 100644 --- a/src/Model/Model_AttributeReference.cpp +++ b/src/Model/Model_AttributeReference.cpp @@ -96,7 +96,8 @@ ObjectPtr Model_AttributeReference::value() bool Model_AttributeReference::isInitialized() { - if (myRef->Label() == myRef->Get()) { // empty reference is not initialized + if (myRef->Label() == myRef->Get() && !myRef->Label().IsAttribute(TDataStd_Comment::GetID())) { + // empty reference is not initialized return false; } return ModelAPI_AttributeReference::isInitialized();