Uncommented code.
This commit is contained in:
@@ -258,17 +258,17 @@ EntityWrapper EditorSystem::importEntity(EntityWrapper parent, boost::filesystem
|
|||||||
return EntityWrapper::Invalid;
|
return EntityWrapper::Invalid;
|
||||||
}
|
}
|
||||||
|
|
||||||
//try {
|
try {
|
||||||
auto entityFile = ResourceManager::Load<EntityFile>(filePath.string());
|
auto entityFile = ResourceManager::Load<EntityFile>(filePath.string());
|
||||||
EntityFilePreprocessor fpp(entityFile);
|
EntityFilePreprocessor fpp(entityFile);
|
||||||
fpp.RegisterComponents(parent.World);
|
fpp.RegisterComponents(parent.World);
|
||||||
EntityFileParser fp(entityFile);
|
EntityFileParser fp(entityFile);
|
||||||
EntityID newEntity = fp.MergeEntities(parent.World, parent.ID);
|
EntityID newEntity = fp.MergeEntities(parent.World, parent.ID);
|
||||||
return EntityWrapper(parent.World, newEntity);
|
return EntityWrapper(parent.World, newEntity);
|
||||||
/*} catch (const std::exception& e) {
|
} catch (const std::exception& e) {
|
||||||
LOG_ERROR("Failed to import entity \"%s\": \"%s\"", filePath.string().c_str(), e.what());
|
LOG_ERROR("Failed to import entity \"%s\": \"%s\"", filePath.string().c_str(), e.what());
|
||||||
return EntityWrapper::Invalid;
|
return EntityWrapper::Invalid;
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditorSystem::setWidgetMode(EditorGUI::WidgetMode mode)
|
void EditorSystem::setWidgetMode(EditorGUI::WidgetMode mode)
|
||||||
|
|||||||
Reference in New Issue
Block a user