1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00

Only allow MeshInstance3D-inherited nodes in MultiMesh Populate Surface dialog

(cherry picked from commit dc3194f668)
This commit is contained in:
Hugo Locurcio
2023-11-15 12:21:50 +01:00
committed by Rémi Verschelde
parent f84ee53a9a
commit 7fb0ec04c2

View File

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