From 59f9234f2755d9e7182bdb72982bdd235bac432d Mon Sep 17 00:00:00 2001 From: Jetha Chan Date: Wed, 18 May 2016 16:59:04 +0900 Subject: [PATCH] set dirty flag when using xform field setters --- .../LvEdRenderingEngine/VectorMath/V3dMath.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/LevelEditorNativeRendering/LvEdRenderingEngine/VectorMath/V3dMath.h b/LevelEditorNativeRendering/LvEdRenderingEngine/VectorMath/V3dMath.h index 0810cc0..3b2d81c 100644 --- a/LevelEditorNativeRendering/LvEdRenderingEngine/VectorMath/V3dMath.h +++ b/LevelEditorNativeRendering/LvEdRenderingEngine/VectorMath/V3dMath.h @@ -440,23 +440,20 @@ namespace LvEdEngine { public: const Vector3& Scale() const { return m_scale; } - void SetScale(const Vector3& scale) - { - m_scale = scale; + void SetScale(const Vector3& scale) { + m_scale = scale; m_needUpdate = true; } const Vector3& Translation() { return m_translate; } - void SetTranslation(const Vector3& trans) - { - m_translate = trans; + void SetTranslation(const Vector3& trans) { + m_translate = trans; m_needUpdate = true; } const Vector3& Rotation() { return m_rotate; } - void SetRotation(const Vector3& rotation) - { - m_rotate = rotation; + void SetRotation(const Vector3& rotation) { + m_rotate = rotation; m_needUpdate = true; } const Matrix& GetMatrix();