optimized triangle count

Sun, 11 Mar 2018 16:13:32 +0200

author
Santeri Piippo
date
Sun, 11 Mar 2018 16:13:32 +0200
changeset 1281
f9c01b455594
parent 1280
5c30efc9032b
child 1282
c6bc95cbf4a3

optimized triangle count

src/model.cpp file | annotate | diff | comparison | revisions
--- a/src/model.cpp	Sun Mar 11 16:13:22 2018 +0200
+++ b/src/model.cpp	Sun Mar 11 16:13:32 2018 +0200
@@ -50,7 +50,7 @@
 		this->pickingColorCursor += 1;
 	}
 
-	recountTriangles();
+	_triangleCount += object->triangleCount(documentManager());
 	emit objectAdded(index(row));
 	endInsertRows();
 }

mercurial