diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-01-10 18:02:19 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-01-10 18:04:33 -0300 |
commit | f3f4a11cfb9767e1d691aec431dd2f1a87a31977 (patch) | |
tree | 7918ff8c7b366df911374c93d5077d27d788f9c3 /scene/3d | |
parent | 6eeb994a7bbd3cb1500c42af8f3ac1227f323ce4 (diff) |
- _ready() callback only happens once now, if you want to receive it again, use request_ready()
- C++ Nodes mostly do an internal process callback, so it does not conflict with users willing to use their own process callbacks
- callbacks such as _input, _process, _fixed_process _unhandled_input, _unhandled_key_input do not requiere calling a function to enable them. They are enabled automatically if found on the script.
Diffstat (limited to 'scene/3d')
-rw-r--r-- | scene/3d/sprite_3d.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/sprite_3d.cpp b/scene/3d/sprite_3d.cpp index 5d686e8715..52ae8fc5ab 100644 --- a/scene/3d/sprite_3d.cpp +++ b/scene/3d/sprite_3d.cpp @@ -1036,7 +1036,7 @@ void AnimatedSprite3D::_validate_property(PropertyInfo& property) const { void AnimatedSprite3D::_notification(int p_what) { switch(p_what) { - case NOTIFICATION_PROCESS: { + case NOTIFICATION_INTERNAL_PROCESS: { if (frames.is_null()) return; @@ -1239,7 +1239,7 @@ void AnimatedSprite3D::_set_playing(bool p_playing) { return; playing=p_playing; _reset_timeout(); - set_process(playing); + set_process_internal(playing); } bool AnimatedSprite3D::_is_playing() const { |