summaryrefslogtreecommitdiff
path: root/editor/plugins/tiles/tile_atlas_view.h
diff options
context:
space:
mode:
authorGilles Roudière <gilles.roudiere@gmail.com>2023-01-17 10:26:10 +0100
committerGilles Roudière <gilles.roudiere@gmail.com>2023-01-17 10:30:07 +0100
commit6285d6e5f54f1b11b9fb43402f15c175e876d405 (patch)
tree4c056432c8a0a0d1ec6464a15519b2b054c14c48 /editor/plugins/tiles/tile_atlas_view.h
parent5a39c63ebbd0e28ae7168124ffd7269f001db288 (diff)
Fixes rectangle painting when dragging outside the atlas area
Diffstat (limited to 'editor/plugins/tiles/tile_atlas_view.h')
-rw-r--r--editor/plugins/tiles/tile_atlas_view.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/tiles/tile_atlas_view.h b/editor/plugins/tiles/tile_atlas_view.h
index 166abca2a3..f719bee704 100644
--- a/editor/plugins/tiles/tile_atlas_view.h
+++ b/editor/plugins/tiles/tile_atlas_view.h
@@ -128,7 +128,7 @@ public:
void set_texture_grid_visible(bool p_visible) { base_tiles_texture_grid->set_visible(p_visible); };
void set_tile_shape_grid_visible(bool p_visible) { base_tiles_shape_grid->set_visible(p_visible); };
- Vector2i get_atlas_tile_coords_at_pos(const Vector2 p_pos) const;
+ Vector2i get_atlas_tile_coords_at_pos(const Vector2 p_pos, bool p_clamp = false) const;
void add_control_over_atlas_tiles(Control *p_control, bool scaled = true) {
if (scaled) {