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/3d | |
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/3d')
-rw-r--r-- | scene/3d/ray_cast.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scene/3d/ray_cast.cpp b/scene/3d/ray_cast.cpp index dd5ae8a999..7f83e2c3ea 100644 --- a/scene/3d/ray_cast.cpp +++ b/scene/3d/ray_cast.cpp @@ -103,7 +103,7 @@ void RayCast::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; @@ -150,12 +150,12 @@ void RayCast::_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); if (get_tree()->is_debugging_collisions_hint()) _update_debug_shape(); } else - set_physics_process(false); + set_physics_process_internal(false); if (Object::cast_to<CollisionObject>(get_parent())) { if (exclude_parent_body) @@ -168,14 +168,14 @@ void RayCast::_notification(int p_what) { case NOTIFICATION_EXIT_TREE: { if (enabled) { - set_physics_process(false); + set_physics_process_internal(false); } if (debug_shape) _clear_debug_shape(); } break; - case NOTIFICATION_PHYSICS_PROCESS: { + case NOTIFICATION_INTERNAL_PHYSICS_PROCESS: { if (!enabled) break; |