Browse Source

fix 2d editor selection

naputt 1 năm trước cách đây
mục cha
commit
9e196b7d8c
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  1. 7 0
      editor/plugins/canvas_item_editor_plugin.cpp

+ 7 - 0
editor/plugins/canvas_item_editor_plugin.cpp

@@ -4073,6 +4073,13 @@ void CanvasItemEditor::_notification(int p_what) {
 				override_camera_button->set_pressed(false);
 			}
 		} break;
+
+		case NOTIFICATION_APPLICATION_FOCUS_OUT: {
+			if (drag_type != DRAG_NONE) {
+				_reset_drag();
+				viewport->queue_redraw();
+			}
+		} break;
 	}
 }