فهرست منبع

Reset TileMap editor `drag_type` by using the _stop_dragging() function when the toolbar mode is not selected

(cherry picked from commit 5a3de5bc308ab80bd538731dd03943b176af1612)
wilto938 1 سال پیش
والد
کامیت
6a2a048753
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      editor/plugins/tiles/tile_map_editor.cpp

+ 1 - 0
editor/plugins/tiles/tile_map_editor.cpp

@@ -524,6 +524,7 @@ bool TileMapEditorTilesPlugin::forward_canvas_gui_input(const Ref<InputEvent> &p
 	}
 
 	if (CanvasItemEditor::get_singleton()->get_current_tool() != CanvasItemEditor::TOOL_SELECT) {
+		_stop_dragging();
 		return false;
 	}