summaryrefslogtreecommitdiffstats
path: root/editor/plugins/tile_map_editor_plugin.cpp
diff options
context:
space:
mode:
authorGilles Roudiere <gilles.roudiere@gmail.com>2017-11-15 23:03:25 +0100
committerGilles Roudiere <gilles.roudiere@gmail.com>2017-11-19 13:36:31 +0100
commit8d1f2b1857322ed2875cd83b275f3a80f04394a9 (patch)
tree95a39e9988c8dd4da85203426764b61f1dff0336 /editor/plugins/tile_map_editor_plugin.cpp
parent0aa4765904b0aea28ccf485b2428b027a5960df4 (diff)
downloadredot-engine-8d1f2b1857322ed2875cd83b275f3a80f04394a9.tar.gz
Rework the canvas_item API for further improves to the canvas item editor
Diffstat (limited to 'editor/plugins/tile_map_editor_plugin.cpp')
-rw-r--r--editor/plugins/tile_map_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/tile_map_editor_plugin.cpp b/editor/plugins/tile_map_editor_plugin.cpp
index 0ee0eed3a2..ffddd8a3a9 100644
--- a/editor/plugins/tile_map_editor_plugin.cpp
+++ b/editor/plugins/tile_map_editor_plugin.cpp
@@ -363,7 +363,7 @@ PoolVector<Vector2> TileMapEditor::_bucket_fill(const Point2i &p_start, bool era
return PoolVector<Vector2>();
}
- Rect2i r = node->get_item_rect();
+ Rect2i r = node->_edit_get_rect();
r.position = r.position / node->get_cell_size();
r.size = r.size / node->get_cell_size();