Browse Source

Merge pull request #11837 from Listwon/FixEditorTooltips

Fix "enable_object_picking" disables editor tooltips
Rémi Verschelde 7 years ago
parent
commit
55c010aa61
1 changed files with 2 additions and 1 deletions
  1. 2 1
      scene/main/viewport.cpp

+ 2 - 1
scene/main/viewport.cpp

@@ -349,6 +349,8 @@ void Viewport::_notification(int p_what) {
 
 
 		} break;
 		} break;
 		case NOTIFICATION_READY: {
 		case NOTIFICATION_READY: {
+
+			set_fixed_process(true);
 #ifndef _3D_DISABLED
 #ifndef _3D_DISABLED
 			if (listeners.size() && !listener) {
 			if (listeners.size() && !listener) {
 				Listener *first = NULL;
 				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) {
 void Viewport::set_physics_object_picking(bool p_enable) {
 
 
 	physics_object_picking = p_enable;
 	physics_object_picking = p_enable;
-	set_fixed_process(physics_object_picking);
 	if (!physics_object_picking)
 	if (!physics_object_picking)
 		physics_picking_events.clear();
 		physics_picking_events.clear();
 }
 }