Procházet zdrojové kódy

Fix RMB erasing of tiles

kobewi před 1 rokem
rodič
revize
af28d58215
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      editor/plugins/tiles/tile_map_layer_editor.cpp

+ 2 - 1
editor/plugins/tiles/tile_map_layer_editor.cpp

@@ -764,12 +764,13 @@ bool TileMapLayerEditorTilesPlugin::forward_canvas_gui_input(const Ref<InputEven
 
 			} else {
 				// Released.
-				drag_erasing = false;
 				if (drag_type == DRAG_TYPE_NONE) {
+					drag_erasing = false;
 					return false;
 				} else {
 					_stop_dragging();
 				}
+				drag_erasing = false;
 			}
 
 			CanvasItemEditor::get_singleton()->update_viewport();