summaryrefslogtreecommitdiffstats
path: root/editor/plugins/sprite_editor_plugin.cpp
diff options
context:
space:
mode:
authorGuilherme Felipe <guilhermefelipecgs@gmail.com>2019-04-20 15:52:01 -0300
committerGuilherme Felipe <guilhermefelipecgs@gmail.com>2019-04-20 17:43:23 -0300
commitd835738045353d166ed307360a6b2959f9c3e557 (patch)
tree98be48aa086877a0c27a97077a90d6c963d4334f /editor/plugins/sprite_editor_plugin.cpp
parent175942dcd10a0dc2e35c4e52992404c5c974c45f (diff)
downloadredot-engine-d835738045353d166ed307360a6b2959f9c3e557.tar.gz
Small ux improvement
Diffstat (limited to 'editor/plugins/sprite_editor_plugin.cpp')
-rw-r--r--editor/plugins/sprite_editor_plugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/sprite_editor_plugin.cpp b/editor/plugins/sprite_editor_plugin.cpp
index fbc72b1396..7642bfaf04 100644
--- a/editor/plugins/sprite_editor_plugin.cpp
+++ b/editor/plugins/sprite_editor_plugin.cpp
@@ -549,6 +549,7 @@ SpriteEditor::SpriteEditor() {
options->get_popup()->add_item(TTR("Convert to Polygon2D"), MENU_OPTION_CONVERT_TO_POLYGON_2D);
options->get_popup()->add_item(TTR("Create CollisionPolygon2D Sibling"), MENU_OPTION_CREATE_COLLISION_POLY_2D);
options->get_popup()->add_item(TTR("Create LightOccluder2D Sibling"), MENU_OPTION_CREATE_LIGHT_OCCLUDER_2D);
+ options->set_switch_on_hover(true);
options->get_popup()->connect("id_pressed", this, "_menu_option");