Model_ResultPart::Model_ResultPart()
{
+ myIsDisabled = true; // by default it is not initialized and false to be after created
setIsConcealed(false);
}
{
ModelAPI_Result::setData(theData);
if (theData) {
- data()->addAttribute(DOC_REF(), ModelAPI_AttributeDocRef::type());
+ data()->addAttribute(DOC_REF(), ModelAPI_AttributeDocRef::typeId());
}
}
aDocRef->setValue(aDoc);
}
}
- if (aDocRef->value())
+ if (aDocRef->value().get()) {
ModelAPI_Session::get()->setActiveDocument(aDocRef->value());
+ }
}
bool Model_ResultPart::isActivated()