scene::Node* getNode() { //if(m_model != g_nullModel) { return m_model.get_pointer(); } //return 0; }
bool save () { if (!mapSaved()) { const std::string moduleName = findModuleName(GetFileTypeRegistry(), MapFormat::Name(), m_type); if (!moduleName.empty()) { const MapFormat* format = ReferenceAPI_getMapModules().findModule(moduleName); if (format != 0 && MapResource_save(*format, m_model.get(), m_path, m_name)) { mapSave(); return true; } } } return false; }
scene::Node* getNode () { return m_model.get_pointer(); }