void DiCullNode::AttachSilently(DiTransUnitPtr obj) { DI_ASSERT(!mObjectsByName.contains(obj->GetName())); mObjectsByName.insert(ObjectMap::value_type(obj->GetName(), obj)); NeedUpdate(); }
void DiCullNode::AttachObject(DiTransUnitPtr obj) { if (obj->IsAttached()) { DI_ERROR("The object has been attached"); } obj->NotifyAttached(this); DI_ASSERT(!mObjectsByName.contains(obj->GetName())); mObjectsByName.insert(ObjectMap::value_type(obj->GetName(), obj)); NeedUpdate(); }