src/widgets/matrixeditor.cpp

changeset 1408
0d6162662040
parent 1406
37fffb682d2f
equal deleted inserted replaced
1407:22bc5862cb56 1408:0d6162662040
174 174
175 QVector4D translation { 175 QVector4D translation {
176 (float) ui.positionX->value(), 176 (float) ui.positionX->value(),
177 (float) ui.positionY->value(), 177 (float) ui.positionY->value(),
178 (float) ui.positionZ->value(), 178 (float) ui.positionZ->value(),
179 0.0f 179 1.0f
180 }; 180 };
181 transformationMatrix.setColumn(3, translation); 181 transformationMatrix.setColumn(3, translation);
182 transformationMatrix.optimize();
182 return transformationMatrix; 183 return transformationMatrix;
183 } 184 }
184 185
185 void MatrixEditor::setMatrix(const QMatrix4x4& matrix) 186 void MatrixEditor::setMatrix(const QMatrix4x4& matrix)
186 { 187 {

mercurial