From 924cd6c56d1aa8ce529b63be30a09facbe8aa73c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20T=2E=20Listwon?= Date: Wed, 4 Oct 2017 20:11:55 +0200 Subject: [PATCH] Fix "enable_object_picking" disables editor tooltips "enable_object_picking" was linked to Viewport's set_fixed_process() and controlled processing of NOTIFICATION_FIXED_PROCESS which handles physics_object_picking, tooltips and debug drawing collision contacts. Fixes #8347 --- scene/main/viewport.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 211602d4a1f..c8db9198b62 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -349,6 +349,8 @@ void Viewport::_notification(int p_what) { } break; case NOTIFICATION_READY: { + + set_fixed_process(true); #ifndef _3D_DISABLED if (listeners.size() && !listener) { Listener *first = NULL; @@ -2347,7 +2349,6 @@ Rect2 Viewport::get_render_target_to_screen_rect() const { void Viewport::set_physics_object_picking(bool p_enable) { physics_object_picking = p_enable; - set_fixed_process(physics_object_picking); if (!physics_object_picking) physics_picking_events.clear(); }