a crash when using the model manager from XML files (which apparently
nobody does, anyway ;-) Now those models work (again), but have no
shadows. Those placed at runtime (e.g. via ufo) still have a shadow.
globals->get_sim_time_sec(), /*cache_object=*/false);
model->init( object );
- shadows->addOccluder((ssgBranch *)object, SGShadowVolume::occluderTypeTileObject);
+ if (shadows)
+ shadows->addOccluder((ssgBranch *)object, SGShadowVolume::occluderTypeTileObject);
// Set position and orientation either
// indirectly through property refs
_mgr->_instances.erase(it);
ssgBranch *branch = (ssgBranch *)instance->model->getSceneGraph();
- shadows->deleteOccluder(branch);
+ if (shadows)
+ shadows->deleteOccluder(branch);
globals->get_scenery()->get_scene_graph()->removeKid(branch);
delete instance;