# HG changeset patch # User Teemu Piippo # Date 1531504055 -10800 # Node ID e5a2ddfe2ba52e5ac0eccc6bf57f78c8f19687a2 # Parent 5354313b9958eec58ccad03be8f02966c7c9a515 fix object moving diff -r 5354313b9958 -r e5a2ddfe2ba5 src/linetypes/modelobject.cpp --- 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 (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 {