diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-01-12 20:35:46 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-01-12 20:35:46 -0300 |
commit | a2903fc51d1d20eba4dc451bdacbe477d6670163 (patch) | |
tree | bbcac01f2c30ca1e104b11321e5c7a6930f51e59 /scene/3d/spatial.h | |
parent | da477b76a98ee7ca4ac16773d3baf1299e053da7 (diff) | |
download | redot-engine-a2903fc51d1d20eba4dc451bdacbe477d6670163.tar.gz |
Must now register with set_transform_notify() to get NOTIFICATION_TRANSFORM_CHANGED
Diffstat (limited to 'scene/3d/spatial.h')
-rw-r--r-- | scene/3d/spatial.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/3d/spatial.h b/scene/3d/spatial.h index 8121eaa8c2..d3cab0539c 100644 --- a/scene/3d/spatial.h +++ b/scene/3d/spatial.h @@ -92,6 +92,7 @@ class Spatial : public Node { bool ignore_notification; bool notify_local_transform; + bool notify_transform; bool visible; @@ -184,6 +185,9 @@ public: void look_at(const Vector3& p_target, const Vector3& p_up_normal); void look_at_from_pos(const Vector3& p_pos,const Vector3& p_target, const Vector3& p_up_normal); + void set_notify_transform(bool p_enable); + bool is_transform_notification_enabled() const; + void set_notify_local_transform(bool p_enable); bool is_local_transform_notification_enabled() const; |