mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 12:26:59 +01:00
Also fix ste style of the 3d prop plugin's convert button.
This commit is contained in:
parent
56e5874267
commit
18184429bb
@ -101,19 +101,14 @@ PropEditorPlugin::PropEditorPlugin(EditorNode *p_node) {
|
||||
editor->add_tool_menu_item("Convert selected scene(s) to PropData", this, "convert_selected_scene_to_prop_data");
|
||||
editor->add_tool_menu_item("(Prop) Find room points.", this, "find_room_points");
|
||||
|
||||
HBoxContainer *container = memnew(HBoxContainer);
|
||||
|
||||
container->add_child(memnew(VSeparator));
|
||||
|
||||
Button *b = memnew(Button);
|
||||
container->add_child(b);
|
||||
b->set_flat(true);
|
||||
|
||||
b->connect("pressed", this, "_quick_convert_button_pressed");
|
||||
b->set_text("To Prop");
|
||||
b->set_shortcut(ED_SHORTCUT("spatial_editor/quick_prop_convert", "Quick convert scene to PropData.", KEY_MASK_ALT + KEY_U));
|
||||
|
||||
add_control_to_container(EditorPlugin::CONTAINER_SPATIAL_EDITOR_MENU, container);
|
||||
add_control_to_container(EditorPlugin::CONTAINER_SPATIAL_EDITOR_MENU, b);
|
||||
}
|
||||
|
||||
PropEditorPlugin::~PropEditorPlugin() {
|
||||
|
Loading…
Reference in New Issue
Block a user