summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Tuvesson <eric.tuvesson@gmail.com>2020-10-22 13:28:34 +0200
committerEric Tuvesson <eric.tuvesson@gmail.com>2020-10-22 13:28:34 +0200
commit8cf88f8ff47f0405eed6c607a1a20af3e7b2dc63 (patch)
tree034988232d9f33b8e3c9a504df13b69619d5ed24
parent003ee8b7c24a4ef4d10efc7f22cc7c4541ab7730 (diff)
fix(editor): Create new icon for TileMap Rectangle
ref: #42972
-rw-r--r--editor/icons/Rectangle.svg1
-rw-r--r--editor/plugins/tile_map_editor_plugin.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/editor/icons/Rectangle.svg b/editor/icons/Rectangle.svg
new file mode 100644
index 0000000000..415940e68f
--- /dev/null
+++ b/editor/icons/Rectangle.svg
@@ -0,0 +1 @@
+<svg height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg"><rect fill="none" height="8" rx=".000017" stroke="#e0e0e0" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2" width="12" x="2" y="4"/></svg>
diff --git a/editor/plugins/tile_map_editor_plugin.cpp b/editor/plugins/tile_map_editor_plugin.cpp
index 9261113706..cb3c0c8be0 100644
--- a/editor/plugins/tile_map_editor_plugin.cpp
+++ b/editor/plugins/tile_map_editor_plugin.cpp
@@ -65,7 +65,7 @@ void TileMapEditor::_notification(int p_what) {
paint_button->set_icon(get_theme_icon("Edit", "EditorIcons"));
line_button->set_icon(get_theme_icon("CurveLinear", "EditorIcons"));
- rectangle_button->set_icon(get_theme_icon("RectangleShape2D", "EditorIcons"));
+ rectangle_button->set_icon(get_theme_icon("Rectangle", "EditorIcons"));
bucket_fill_button->set_icon(get_theme_icon("Bucket", "EditorIcons"));
picker_button->set_icon(get_theme_icon("ColorPick", "EditorIcons"));
select_button->set_icon(get_theme_icon("ActionCopy", "EditorIcons"));