Skip to content

Commit

Permalink
Merge pull request #84933 from Calinou/editor-multimesh-populate-fix-…
Browse files Browse the repository at this point in the history
…node-type

Only allow MeshInstance3D-inherited nodes in MultiMesh Populate Surface dialog
  • Loading branch information
akien-mga committed Dec 4, 2023
2 parents 8b3ba7e + dc3194f commit 764e468
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editor/plugins/multimesh_editor_plugin.cpp
Expand Up @@ -354,6 +354,9 @@ MultiMeshEditor::MultiMeshEditor() {

populate_dialog->get_ok_button()->connect("pressed", callable_mp(this, &MultiMeshEditor::_populate));
std = memnew(SceneTreeDialog);
Vector<StringName> valid_types;
valid_types.push_back("MeshInstance3D");
std->set_valid_types(valid_types);
populate_dialog->add_child(std);
std->connect("selected", callable_mp(this, &MultiMeshEditor::_browsed));

Expand Down

0 comments on commit 764e468

Please sign in to comment.