- fixed: rotating a subfile would make known verts go out of sync

Sat, 19 Apr 2014 14:12:30 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Sat, 19 Apr 2014 14:12:30 +0300
changeset 724
7a82693d971a
parent 723
fecdf950f32d
child 725
37b71daf4cb5

- fixed: rotating a subfile would make known verts go out of sync

src/ldObject.cc file | annotate | diff | comparison | revisions
--- a/src/ldObject.cc	Sat Apr 19 14:09:51 2014 +0300
+++ b/src/ldObject.cc	Sat Apr 19 14:12:30 2014 +0300
@@ -755,7 +755,13 @@
 //
 void LDMatrixObject::setTransform (const Matrix& val)
 {
+	if (linkPointer()->document() != null)
+		linkPointer()->document()->removeKnownVerticesOf (linkPointer());
+
 	changeProperty (linkPointer(), &m_transform, val);
+
+	if (linkPointer()->document() != null)
+		linkPointer()->document()->addKnownVerticesOf (linkPointer());
 }
 
 // =============================================================================

mercurial