Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set dirty flag when using xform field setters #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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