From 09140d7d346770792453ea606fd2b633a823a1e5 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 21 May 2015 11:06:05 +0300 Subject: [PATCH] A correction for the case: create a sketch, create a part, start creation of an extrusion. The incorrect result is sketch was not highlightable. --- src/Model/Model_AttributeReference.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.39.2