Actually add the tool mode external button to the spatial editor's menu. This also fixes a memleak.

This commit is contained in:
Relintai 2022-03-16 12:02:55 +01:00
parent 2df1a744dc
commit 4d80a4f047

View File

@ -6997,6 +6997,7 @@ SpatialEditor::SpatialEditor(EditorNode *p_editor) {
update_portal_tools();
tool_button[TOOL_MODE_EXTERNAL] = memnew(ToolButton);
hbc_menu->add_child(tool_button[TOOL_MODE_EXTERNAL]);
button_binds.write[0] = MENU_TOOL_EXTERNAL;
tool_button[TOOL_MODE_EXTERNAL]->connect("pressed", this, "_menu_item_pressed", button_binds);
}