Wed, 22 May 2013 20:51:45 +0300
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 (); }