static bool once;
if(!once) {
float x = ImGui::GetColumnOffset(1);
- ImGui::SetColumnOffset(1, x * 1.7);
+ ImGui::SetColumnOffset(1, x * 1.55);
once = true;
}
}
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;
}
}