diff options
Diffstat (limited to 'scene/main/scene_main_loop.cpp')
-rw-r--r-- | scene/main/scene_main_loop.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/scene/main/scene_main_loop.cpp b/scene/main/scene_main_loop.cpp index 492c7633c1..bcdc50c880 100644 --- a/scene/main/scene_main_loop.cpp +++ b/scene/main/scene_main_loop.cpp @@ -481,8 +481,10 @@ bool SceneMainLoop::iteration(float p_time) { _flush_transform_notifications(); MainLoop::iteration(p_time); - fixed_process_time=p_time; + + emit_signal("fixed_frame"); + _notify_group_pause("fixed_process",Node::NOTIFICATION_FIXED_PROCESS); _flush_ugc(); _flush_transform_notifications(); @@ -507,6 +509,8 @@ bool SceneMainLoop::idle(float p_time){ idle_process_time=p_time; + emit_signal("idle_frame"); + _flush_transform_notifications(); _notify_group_pause("idle_process",Node::NOTIFICATION_PROCESS); @@ -580,6 +584,7 @@ void SceneMainLoop::_notification(int p_notification) { break; } } break; + case NOTIFICATION_OS_MEMORY_WARNING: case NOTIFICATION_WM_FOCUS_IN: case NOTIFICATION_WM_FOCUS_OUT: { @@ -1062,6 +1067,11 @@ SceneMainLoop::SceneMainLoop() { ScriptDebugger::get_singleton()->set_request_scene_tree_message_func(_debugger_request_tree,this); } + root->set_physics_object_picking(GLOBAL_DEF("physics/enable_object_picking",true)); + + ADD_SIGNAL( MethodInfo("idle_frame")); + ADD_SIGNAL( MethodInfo("fixed_frame")); + } |