Browse Source

SceneGraph: fix a copypaste error in an abstract implementation.

Abstract transformation implementations are not used as often so there
was only a minor chance somebody would hit this bug, yet it's a serious
bug. Discovered by PVS-Studio, many thanks to @alexesDev for collecting
the report.
pull/280/head
Vladimír Vondruš 8 years ago
parent
commit
7356a1b788
  1. 2
      src/Magnum/SceneGraph/AbstractTranslationRotation3D.h

2
src/Magnum/SceneGraph/AbstractTranslationRotation3D.h

@ -125,7 +125,7 @@ template<class T> class AbstractBasicTranslationRotation3D: public AbstractBasic
* more information.
*/
AbstractBasicTranslationRotation3D<T>& rotateYLocal(Math::Rad<T> angle) {
doRotateY(angle);
doRotateYLocal(angle);
return *this;
}

Loading…
Cancel
Save