X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=blobdiff_plain;f=src%2Fmetascene.cc;h=465decf2934a5965aed23aaf04cfd99089590776;hp=a45bfec2f57dd0e511cec7a64e027a2ec12bd999;hb=04e3ba9a85209eb83100c83118f0db5dece1788f;hpb=9480e20f4de41693ebd1f22e63d3bcecde878f70 diff --git a/src/metascene.cc b/src/metascene.cc index a45bfec..465decf 100644 --- a/src/metascene.cc +++ b/src/metascene.cc @@ -108,7 +108,7 @@ void MetaScene::update(float dt) static bool once; if(!once) { float x = ImGui::GetColumnOffset(1); - ImGui::SetColumnOffset(1, x * 1.7); + ImGui::SetColumnOffset(1, x * 1.55); once = true; } } @@ -275,15 +275,17 @@ int MetaScene::calc_mirror_planes() mir->next = mirrors; mirrors = mir; - node = new FlatMirror; - node->wplane = mir->wplane; - node->next = planes; - planes = node; + // also add a node to the mirror plane matching list + FlatMirror *m = new FlatMirror; + m->wplane = mir->wplane; + m->next = planes; + planes = m; mir->objects.push_back(obj); objmirror[obj] = mir; // associate with object ++num_mirrors; } else { + node->objects.push_back(obj); delete mir; } }