diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-12-01 11:43:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-01 11:43:04 +0100 |
commit | 06fd6e6945f38ea110de07c6cc279bf9cf48e75d (patch) | |
tree | 0488029da64950bf8dba672d78e9379acb02910a | |
parent | 6f38aeef5255d1fdeb99d727a0f67b9be6ccdf36 (diff) | |
parent | b44e0d60c7268cab8455bd450566826bdb48263c (diff) |
Merge pull request #34019 from nekomatata/inspector-transform-update
Update transform property in the inspector when changing translation/rotation/scale
-rw-r--r-- | scene/3d/spatial.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/3d/spatial.cpp b/scene/3d/spatial.cpp index 9a659ef4af..043d5d5548 100644 --- a/scene/3d/spatial.cpp +++ b/scene/3d/spatial.cpp @@ -322,6 +322,7 @@ Transform Spatial::get_relative_transform(const Node *p_parent) const { void Spatial::set_translation(const Vector3 &p_translation) { data.local_transform.origin = p_translation; + _change_notify("transform"); _propagate_transform_changed(this); if (data.notify_local_transform) { notification(NOTIFICATION_LOCAL_TRANSFORM_CHANGED); @@ -337,6 +338,7 @@ void Spatial::set_rotation(const Vector3 &p_euler_rad) { data.rotation = p_euler_rad; data.dirty |= DIRTY_LOCAL; + _change_notify("transform"); _propagate_transform_changed(this); if (data.notify_local_transform) { notification(NOTIFICATION_LOCAL_TRANSFORM_CHANGED); @@ -357,6 +359,7 @@ void Spatial::set_scale(const Vector3 &p_scale) { data.scale = p_scale; data.dirty |= DIRTY_LOCAL; + _change_notify("transform"); _propagate_transform_changed(this); if (data.notify_local_transform) { notification(NOTIFICATION_LOCAL_TRANSFORM_CHANGED); |