X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fscene.cpp;h=1e72d5dca36285f5664eb8151668fb107a5d0a0e;hp=28b794b035c5b3da61bf4cd9e92363607a5b771a;hb=b617c5d7b5283ad260a77f01e42e6170cabbc03d;hpb=f17794d55923d4fb4f63e9d082d8d84a735a04e8 diff --git a/source/scene.cpp b/source/scene.cpp index 28b794b0..1e72d5dc 100644 --- a/source/scene.cpp +++ b/source/scene.cpp @@ -14,7 +14,7 @@ namespace GL { void Scene::add(const Renderable &r) { - if(const ObjectInstance *oi=dynamic_cast(&r)) + if(const ObjectInstance *oi = dynamic_cast(&r)) objects[&oi->get_object()].insert(oi); else renderables.insert(&r); @@ -22,9 +22,9 @@ void Scene::add(const Renderable &r) void Scene::remove(const Renderable &r) { - if(const ObjectInstance *oi=dynamic_cast(&r)) + if(const ObjectInstance *oi = dynamic_cast(&r)) { - ObjectMap::iterator i=objects.find(&oi->get_object()); + ObjectMap::iterator i = objects.find(&oi->get_object()); if(i!=objects.end()) { i->second.erase(oi);