REMOVE_BACK_REF(aValue);
TDF_Label anObjLab;
- if (theObject.get() && theObject->data().get() && theObject->data()->isValid()) {
+ if (theObject.get() && theObject->data()->isValid()) {
std::shared_ptr<Model_Data> aData = std::dynamic_pointer_cast<Model_Data>(
theObject->data());
anObjLab = aData->label().Father(); // object label
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();