Merge pull request #84891 from Calinou/editor-particles-generate-emission-fix-node-type

Only allow MeshInstance3D-based nodes in particles emission shape node selector
This commit is contained in:
Rémi Verschelde 2023-12-04 23:07:34 +01:00
commit 8b3ba7e074
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -223,6 +223,9 @@ GPUParticles3DEditorBase::GPUParticles3DEditorBase() {
emission_dialog->connect("confirmed", callable_mp(this, &GPUParticles3DEditorBase::_generate_emission_points));
emission_tree_dialog = memnew(SceneTreeDialog);
Vector<StringName> valid_types;
valid_types.push_back("MeshInstance3D");
emission_tree_dialog->set_valid_types(valid_types);
add_child(emission_tree_dialog);
emission_tree_dialog->connect("selected", callable_mp(this, &GPUParticles3DEditorBase::_node_selected));
}