adding renderable type back to renderables

This commit is contained in:
Micah Acinapura
2021-07-07 12:19:15 -04:00
parent 95d008f69e
commit f067cfa63b
-3
View File
@@ -92,9 +92,6 @@ ghoul::mm_unique_ptr<Renderable> Renderable::createFromDictionary(
documentation::testSpecificationAndThrow(Documentation(), dictionary, "Renderable");
std::string renderableType = dictionary.value<std::string>(KeyType);
// Now we no longer need the type variable
dictionary.removeValue(KeyType);
auto factory = FactoryManager::ref().factory<Renderable>();
ghoul_assert(factory, "Renderable factory did not exist");
Renderable* result = factory->create(