Merge pull request #84933 from Calinou/editor-multimesh-populate-fix-node-type
Only allow MeshInstance3D-inherited nodes in MultiMesh Populate Surface dialog
This commit is contained in:
commit
764e468066
1 changed files with 3 additions and 0 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue