if (thePart) {
DocumentPtr aFeaDoc;
if (!XGUI_Tools::isModelObject(thePart)) {
- //if (thePart->data()) {
aFeaDoc = thePart->data()->docRef("PartDocument")->value();
} else {
ObjectPtr aObject = boost::dynamic_pointer_cast<ModelAPI_Object>(thePart);
if (aFeature->getKind() == "Part") {
DocumentPtr aDoc;
if (!XGUI_Tools::isModelObject(aFeature)) {
- //if (aFeature->data()) {
aDoc = aFeature->data()->docRef("PartDocument")->value();
} else {
ObjectPtr aObject = boost::dynamic_pointer_cast<ModelAPI_Object>(aFeature);
}
} else {
if (XGUI_Tools::isModelObject(aFeature)) {
- //if (!aFeature->data()) {
ObjectPtr aObject = boost::dynamic_pointer_cast<ModelAPI_Object>(aFeature);
aFeature = aObject->featureRef();
}