src/linetypes/modelobject.cpp

changeset 1426
e5a2ddfe2ba5
parent 1423
6608db56b047
child 1440
265b2e95a8e8
--- a/src/linetypes/modelobject.cpp	Sat Jun 23 13:57:04 2018 +0300
+++ b/src/linetypes/modelobject.cpp	Fri Jul 13 20:47:35 2018 +0300
@@ -308,7 +308,11 @@
 	if (hasMatrix())
 	{
 		LDMatrixObject* mo = static_cast<LDMatrixObject*> (this);
-		mo->translate(vector);
+		QMatrix4x4 matrix = mo->transformationMatrix();
+		matrix(0, 3) += vector.x();
+		matrix(1, 3) += vector.y();
+		matrix(2, 3) += vector.z();
+		mo->setTransformationMatrix(matrix);
 	}
 	else
 	{

mercurial