Przeglądaj źródła

Merge pull request #86066 from Wiltof/tilemapPaint

Reset TileMap editor `drag_type` when the toolbar mode is not selected
Yuri Sizov 1 rok temu
rodzic
commit
a6c0c90058
1 zmienionych plików z 1 dodań i 0 usunięć
  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;
 	}