mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-24 20:57:18 +01:00
Actually add the tool mode external button to the spatial editor's menu. This also fixes a memleak.
This commit is contained in:
parent
2df1a744dc
commit
4d80a4f047
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user