- LDDocument must be initialized with m_needsGLReInit as true or it will not be compiled properly...

Sun, 09 Mar 2014 21:14:07 +0200

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Sun, 09 Mar 2014 21:14:07 +0200
changeset 693
8432b37034a9
parent 692
94feb28faffe
child 694
3868f52da6b9

- LDDocument must be initialized with m_needsGLReInit as true or it will not be compiled properly...

src/Document.cc file | annotate | diff | comparison | revisions
src/GLCompiler.cc file | annotate | diff | comparison | revisions
src/LDObject.cc file | annotate | diff | comparison | revisions
--- 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;
 }
 
 // =============================================================================
--- 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<LDSubfile*> (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)
 			{
--- 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<LDPolygon> LDSubfile::inlinePolygons()
 {
 	QList<LDPolygon> 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)

mercurial