return;
myRefsToMe.erase(anAttribute);
- // TODO: check whether the concealed should be thrown down to the false value
- std::shared_ptr<ModelAPI_Result> aRes =
- std::dynamic_pointer_cast<ModelAPI_Result>(myObject);
- if (aRes)
- aRes->setIsConcealed(false);
}
void Model_Data::addBackReference(FeaturePtr theFeature, std::string theAttrID,
/// Removes all information about back references
void eraseBackReferences();
/// Adds a back reference (with identifier which attribute references to this object
+ /// It does not change the consealment flag of the data object result
/// \param theFeature feature referenced to this
/// \param theAttrID identifier of the attribute that is references from theFeature to this
void removeBackReference(FeaturePtr theFeature, std::string theAttrID);
}
// event: feature is deleted
ModelAPI_EventCreator::get()->sendDeleted(theFeature->document(), ModelAPI_Feature::group());
+ // the redisplay signal should be flushed in order to erase the feature presentation in the viewer
+ Events_Loop::loop()->flush(EVENT_DISP);
}
}
aDoc->removeFeature(aFeature);
}
}
- // the update signal should be emitted obligatory in order to have a redisplay
- // signal and hide the removed presentations in the viewer
- Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_UPDATED));
return true;
}