Skip to content

Commit

Permalink
Merge pull request #61940 from Calinou/editor-rename-meshinstance2d-a…
Browse files Browse the repository at this point in the history
…ctions

Rename "Convert to Mesh2D" to "Convert to MeshInstance2D" in the editor
  • Loading branch information
akien-mga authored Jun 11, 2022
2 parents 5dd602d + dccd925 commit 40963cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor/plugins/sprite_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ void SpriteEditor::_convert_to_mesh_2d_node() {
mesh_instance->set_mesh(mesh);

UndoRedo *ur = EditorNode::get_singleton()->get_undo_redo();
ur->create_action(TTR("Convert to Mesh2D"));
ur->create_action(TTR("Convert to MeshInstance2D"));
ur->add_do_method(EditorNode::get_singleton()->get_scene_tree_dock(), "replace_node", node, mesh_instance, true, false);
ur->add_do_reference(mesh_instance);
ur->add_undo_method(EditorNode::get_singleton()->get_scene_tree_dock(), "replace_node", mesh_instance, node, false, false);
Expand Down Expand Up @@ -511,7 +511,7 @@ SpriteEditor::SpriteEditor() {
options->set_text(TTR("Sprite"));
options->set_icon(EditorNode::get_singleton()->get_gui_base()->get_icon("Sprite", "EditorIcons"));

options->get_popup()->add_item(TTR("Convert to Mesh2D"), MENU_OPTION_CONVERT_TO_MESH_2D);
options->get_popup()->add_item(TTR("Convert to MeshInstance2D"), MENU_OPTION_CONVERT_TO_MESH_2D);
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);
Expand Down

0 comments on commit 40963cc

Please sign in to comment.