feat: updated engine version to 4.4-rc1
This commit is contained in:
parent
ee00efde1f
commit
21ba8e33af
5459 changed files with 1128836 additions and 198305 deletions
|
|
@ -110,7 +110,7 @@ void MultiMeshEditor::_populate() {
|
|||
|
||||
MeshInstance3D *ss_instance = Object::cast_to<MeshInstance3D>(ss_node);
|
||||
|
||||
if (!ss_instance || !ss_instance->get_mesh().is_valid()) {
|
||||
if (!ss_instance || ss_instance->get_mesh().is_null()) {
|
||||
err_dialog->set_text(TTR("Surface source is invalid (no geometry)."));
|
||||
err_dialog->popup_centered();
|
||||
return;
|
||||
|
|
@ -266,16 +266,13 @@ void MultiMeshEditor::_browse(bool p_source) {
|
|||
std->popup_scenetree_dialog(browsed_node);
|
||||
}
|
||||
|
||||
void MultiMeshEditor::_bind_methods() {
|
||||
}
|
||||
|
||||
MultiMeshEditor::MultiMeshEditor() {
|
||||
options = memnew(MenuButton);
|
||||
options->set_switch_on_hover(true);
|
||||
Node3DEditor::get_singleton()->add_control_to_menu_panel(options);
|
||||
|
||||
options->set_text("MultiMesh");
|
||||
options->set_icon(EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("MultiMeshInstance3D"), EditorStringName(EditorIcons)));
|
||||
options->set_button_icon(EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("MultiMeshInstance3D"), EditorStringName(EditorIcons)));
|
||||
|
||||
options->get_popup()->add_item(TTR("Populate Surface"));
|
||||
options->get_popup()->connect(SceneStringName(id_pressed), callable_mp(this, &MultiMeshEditor::_menu_option));
|
||||
|
|
@ -387,7 +384,7 @@ void MultiMeshEditorPlugin::make_visible(bool p_visible) {
|
|||
|
||||
MultiMeshEditorPlugin::MultiMeshEditorPlugin() {
|
||||
multimesh_editor = memnew(MultiMeshEditor);
|
||||
EditorNode::get_singleton()->get_main_screen_control()->add_child(multimesh_editor);
|
||||
EditorNode::get_singleton()->get_gui_base()->add_child(multimesh_editor);
|
||||
|
||||
multimesh_editor->options->hide();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue