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 Dec 12, 2016
1 parent d5a2af9 commit 59f9234
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 59f9234

Please sign in to comment.