Skip to content

Commit

Permalink
Merge pull request #84891 from Calinou/editor-particles-generate-emis…
Browse files Browse the repository at this point in the history
…sion-fix-node-type

Only allow MeshInstance3D-based nodes in particles emission shape node selector
  • Loading branch information
akien-mga committed Dec 4, 2023
2 parents a9ba869 + c6a16b1 commit 8b3ba7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editor/plugins/gpu_particles_3d_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 8b3ba7e

Please sign in to comment.