Skip to content

Commit 59f9234

Browse files
author
Jetha Chan
committed
set dirty flag when using xform field setters
1 parent d5a2af9 commit 59f9234

File tree

1 file changed

+6
-9
lines changed
  • LevelEditorNativeRendering/LvEdRenderingEngine/VectorMath

1 file changed

+6
-9
lines changed

LevelEditorNativeRendering/LvEdRenderingEngine/VectorMath/V3dMath.h

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -440,23 +440,20 @@ namespace LvEdEngine
440440
{
441441
public:
442442
const Vector3& Scale() const { return m_scale; }
443-
void SetScale(const Vector3& scale)
444-
{
445-
m_scale = scale;
443+
void SetScale(const Vector3& scale) {
444+
m_scale = scale;
446445
m_needUpdate = true;
447446
}
448447

449448
const Vector3& Translation() { return m_translate; }
450-
void SetTranslation(const Vector3& trans)
451-
{
452-
m_translate = trans;
449+
void SetTranslation(const Vector3& trans) {
450+
m_translate = trans;
453451
m_needUpdate = true;
454452
}
455453

456454
const Vector3& Rotation() { return m_rotate; }
457-
void SetRotation(const Vector3& rotation)
458-
{
459-
m_rotate = rotation;
455+
void SetRotation(const Vector3& rotation) {
456+
m_rotate = rotation;
460457
m_needUpdate = true;
461458
}
462459
const Matrix& GetMatrix();

0 commit comments

Comments
 (0)