Skip to content

Commit

Permalink
Merge pull request #45775 from RandomShaper/pause_aware_picking
Browse files Browse the repository at this point in the history
Implement pause-aware picking
  • Loading branch information
akien-mga authored Feb 8, 2021
2 parents 6de91c8 + a63996a commit 6673c91
Show file tree
Hide file tree
Showing 3 changed files with 264 additions and 236 deletions.
1 change: 1 addition & 0 deletions scene/main/scene_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ bool SceneTree::physics_process(float p_time) {
emit_signal("physics_frame");

_notify_group_pause("physics_process_internal", Node::NOTIFICATION_INTERNAL_PHYSICS_PROCESS);
call_group_flags(GROUP_CALL_REALTIME, "_viewports", "_process_picking");
_notify_group_pause("physics_process", Node::NOTIFICATION_PHYSICS_PROCESS);
_flush_ugc();
MessageQueue::get_singleton()->flush(); //small little hack
Expand Down
Loading

0 comments on commit 6673c91

Please sign in to comment.