diff options
Diffstat (limited to 'scene/main/scene_main_loop.cpp')
-rw-r--r-- | scene/main/scene_main_loop.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/scene/main/scene_main_loop.cpp b/scene/main/scene_main_loop.cpp index 1926570885..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); @@ -1063,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")); + } |