diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-04-12 10:06:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-12 10:06:28 +0200 |
commit | cdf22e61ab236dbb2243f1ab7d86580bd4655798 (patch) | |
tree | a70fb285c5b03e1cf992a697e84314fab8a78ba5 /scene/2d | |
parent | 12a9495f5e0754f4eab36556c77ec1d90232b26e (diff) | |
parent | fbc61374ca267545a45e00c44e13433dd2c1b1a9 (diff) |
Merge pull request #18118 from akien-mga/nodes-internal-process
Use internal physics processing for Nodes' internal logic
Diffstat (limited to 'scene/2d')
-rw-r--r-- | scene/2d/ray_cast_2d.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scene/2d/ray_cast_2d.cpp b/scene/2d/ray_cast_2d.cpp index 5a563143ad..255d2d38d5 100644 --- a/scene/2d/ray_cast_2d.cpp +++ b/scene/2d/ray_cast_2d.cpp @@ -101,7 +101,7 @@ void RayCast2D::set_enabled(bool p_enabled) { enabled = p_enabled; if (is_inside_tree() && !Engine::get_singleton()->is_editor_hint()) - set_physics_process(p_enabled); + set_physics_process_internal(p_enabled); if (!p_enabled) collided = false; } @@ -141,9 +141,9 @@ void RayCast2D::_notification(int p_what) { case NOTIFICATION_ENTER_TREE: { if (enabled && !Engine::get_singleton()->is_editor_hint()) - set_physics_process(true); + set_physics_process_internal(true); else - set_physics_process(false); + set_physics_process_internal(false); if (Object::cast_to<CollisionObject2D>(get_parent())) { if (exclude_parent_body) @@ -155,7 +155,7 @@ void RayCast2D::_notification(int p_what) { case NOTIFICATION_EXIT_TREE: { if (enabled) - set_physics_process(false); + set_physics_process_internal(false); } break; @@ -183,7 +183,7 @@ void RayCast2D::_notification(int p_what) { } break; - case NOTIFICATION_PHYSICS_PROCESS: { + case NOTIFICATION_INTERNAL_PHYSICS_PROCESS: { if (!enabled) break; |