Uncommented code.

This commit is contained in:
William Moberg
2016-03-02 17:06:53 +01:00
parent 4ef76f6c45
commit 53c520123a
+3 -3
View File
@@ -258,17 +258,17 @@ EntityWrapper EditorSystem::importEntity(EntityWrapper parent, boost::filesystem
return EntityWrapper::Invalid;
}
//try {
try {
auto entityFile = ResourceManager::Load<EntityFile>(filePath.string());
EntityFilePreprocessor fpp(entityFile);
fpp.RegisterComponents(parent.World);
EntityFileParser fp(entityFile);
EntityID newEntity = fp.MergeEntities(parent.World, parent.ID);
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());
return EntityWrapper::Invalid;
}*/
}
}
void EditorSystem::setWidgetMode(EditorGUI::WidgetMode mode)