Only allow MeshInstance3D-based nodes in particles emission shape node selector
This applies to both GPUParticles3D and CPUParticles3D, as CPUParticles3DEditor inherits from GPUParticles3DEditorBase.
This commit is contained in:
parent
baf6b4634d
commit
c6a16b176e
1 changed files with 3 additions and 0 deletions
|
@ -223,6 +223,9 @@ GPUParticles3DEditorBase::GPUParticles3DEditorBase() {
|
||||||
emission_dialog->connect("confirmed", callable_mp(this, &GPUParticles3DEditorBase::_generate_emission_points));
|
emission_dialog->connect("confirmed", callable_mp(this, &GPUParticles3DEditorBase::_generate_emission_points));
|
||||||
|
|
||||||
emission_tree_dialog = memnew(SceneTreeDialog);
|
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);
|
add_child(emission_tree_dialog);
|
||||||
emission_tree_dialog->connect("selected", callable_mp(this, &GPUParticles3DEditorBase::_node_selected));
|
emission_tree_dialog->connect("selected", callable_mp(this, &GPUParticles3DEditorBase::_node_selected));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue