Skip to content

Commit

Permalink
set dirty flag when using xform field setters
Browse files Browse the repository at this point in the history
  • Loading branch information
Jetha Chan committed May 18, 2016
1 parent 2ef097e commit fa5cd95
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -440,13 +440,22 @@ 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();

Transform() : m_translate(0,0,0),
Expand Down

0 comments on commit fa5cd95

Please sign in to comment.