Fixed: selecting objects in list view didn't update the GL view properly

Wed, 22 May 2013 20:51:45 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Wed, 22 May 2013 20:51:45 +0300
changeset 242
d0a27d56559f
parent 241
cffab8e109f6
child 243
a7c72c847634

Fixed: selecting objects in list view didn't update the GL view properly

src/gui.cpp file | annotate | diff | comparison | revisions
--- a/src/gui.cpp	Wed May 22 20:46:29 2013 +0300
+++ b/src/gui.cpp	Wed May 22 20:51:45 2013 +0300
@@ -741,11 +741,15 @@
 	}
 	
 	// Update the GL renderer
-	for (LDObject* obj : m_sel)
+	for (LDObject* obj : priorSelection) {
+		obj->setSelected (false);
 		m_renderer->compileObject (obj);
+	}
 	
-	for (LDObject* obj : priorSelection)
-		printf ("recompile %lu\n", obj->getIndex (g_curfile));
+	for (LDObject* obj : m_sel) {
+		obj->setSelected (true);
+		m_renderer->compileObject (obj);
+	}
 	
 	m_renderer->update ();
 }

mercurial