Fri, 13 Jul 2018 20:47:35 +0300
fix object moving
src/linetypes/modelobject.cpp | file | annotate | diff | comparison | revisions |
--- 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 {