# HG changeset patch # User Santeri Piippo # Date 1394392447 -7200 # Node ID 8432b37034a9a69aea3a9a923d114efef2355b91 # Parent 94feb28faffe8e04bdb401ebd394cb9152f639d2 - LDDocument must be initialized with m_needsGLReInit as true or it will not be compiled properly... diff -r 94feb28faffe -r 8432b37034a9 src/Document.cc --- a/src/Document.cc Sun Mar 09 21:07:44 2014 +0200 +++ b/src/Document.cc Sun Mar 09 21:14:07 2014 +0200 @@ -129,6 +129,7 @@ setTabIndex (-1); setHistory (new History); history()->setDocument (this); + m_needsGLReInit = true; } // ============================================================================= diff -r 94feb28faffe -r 8432b37034a9 src/GLCompiler.cc --- a/src/GLCompiler.cc Sun Mar 09 21:07:44 2014 +0200 +++ b/src/GLCompiler.cc Sun Mar 09 21:14:07 2014 +0200 @@ -360,7 +360,7 @@ { LDSubfile* ref = static_cast (obj); auto data = ref->inlinePolygons(); - print ("inlinePolygons yielded %1 polys\n", data.size()); + print ("inlinePolygons on %2 yielded %1 polys\n", data.size(), ref->fileInfo()->getDisplayName()); for (LDPolygon& poly : data) { diff -r 94feb28faffe -r 8432b37034a9 src/LDObject.cc --- a/src/LDObject.cc Sun Mar 09 21:07:44 2014 +0200 +++ b/src/LDObject.cc Sun Mar 09 21:14:07 2014 +0200 @@ -366,6 +366,7 @@ QList LDSubfile::inlinePolygons() { QList data = fileInfo()->inlinePolygons(); + print ("LDSubfile::inlinePolygons: %1 has %2 polygons\n", fileInfo()->getDisplayName(), data.size()); for (LDPolygon& entry : data) for (int i = 0; i < entry.numVertices(); ++i)