Browse Source

Simplified Object::multiplyTransformation().

vectorfields
Vladimír Vondruš 14 years ago
parent
commit
2c48e30858
  1. 3
      src/Object.h

3
src/Object.h

@ -103,8 +103,7 @@ class MAGNUM_EXPORT Object {
* Multiplies current transformation matrix by new matrix.
*/
inline void multiplyTransformation(const Matrix4& transformation, bool global = true) {
_transformation = global ? transformation*_transformation : _transformation*transformation;
setDirty();
setTransformation(global ? transformation*_transformation : _transformation*transformation);
}
/**

Loading…
Cancel
Save