Browse Source

Merge pull request #62993 from KoBeWi/drash

Fix drag_selection crash on scene close
Rémi Verschelde 3 năm trước cách đây
mục cha
commit
748609feac
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      editor/plugins/canvas_item_editor_plugin.cpp

+ 1 - 1
editor/plugins/canvas_item_editor_plugin.cpp

@@ -3645,7 +3645,7 @@ void CanvasItemEditor::_draw_hover() {
 }
 
 void CanvasItemEditor::_draw_transform_message() {
-	if (drag_selection.is_empty() || !drag_selection.front()->get()) {
+	if (drag_type == DRAG_NONE || drag_selection.is_empty() || !drag_selection.front()->get()) {
 		return;
 	}
 	String transform_message;