void instanceDetach (const scene::Path& path) { if (--m_instanceCounter.m_count == 0) { m_entity.detach(m_keyObservers); m_traverse.instanceDetach(path_find_mapfile(path.begin(), path.end())); m_entity.instanceDetach(path_find_mapfile(path.begin(), path.end())); } }
void instanceDetach(const scene::Path& path) { if(--m_instanceCounter.m_count == 0) { m_funcStaticOrigin.disable(); m_traverse.instanceDetach(path_find_mapfile(path.begin(), path.end())); m_entity.instanceDetach(path_find_mapfile(path.begin(), path.end())); m_filter.instanceDetach(); } }
void instanceAttach (const scene::Path& path) { if (++m_instanceCounter.m_count == 1) { m_entity.instanceAttach(path_find_mapfile(path.begin(), path.end())); m_entity.attach(m_keyObservers); } }