Open marip8 opened 2 months ago
For the case of the plane, it seems like we might be able to support it with the following:
auto entity = entity_container.addUntrackedEntity(tesseract_gui::EntityContainer::RESOURCE_NS);
ogre_entity = scene.createEntity(entity.unique_name, Ogre::SceneManager::PrefabType::PT_PLANE);
The function
loadLinkGeometry
returns anullptr
for shape types it does not know how to render. This causes a segfault when parsing currently unsupported shapes, like planes. Instead of returning anullptr
, we should instead return an emptyOgre::Entity
object (if possible) or check if the return of this function is anullptr
before adding it to the scene here and here.