- fixed bug in mirror matching
[laserbrain_demo] / src / metascene.cc
index ba5bdc2..465decf 100644 (file)
@@ -279,7 +279,7 @@ int MetaScene::calc_mirror_planes()
                                        FlatMirror *m = new FlatMirror;
                                        m->wplane = mir->wplane;
                                        m->next = planes;
-                                       planes = node;
+                                       planes = m;
 
                                        mir->objects.push_back(obj);
                                        objmirror[obj] = mir;   // associate with object