From ed5f6cc3515792de02afa2f96e508942701f7cc8 Mon Sep 17 00:00:00 2001 From: John Wigg <31868812+CaptainProton42@users.noreply.github.com> Date: Fri, 24 Sep 2021 23:11:10 +0200 Subject: [PATCH] Fix GPUParticle3D emission point generation `emission_point_texture` is now correctly created from an image containing the emission points. --- editor/plugins/gpu_particles_3d_editor_plugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/plugins/gpu_particles_3d_editor_plugin.cpp b/editor/plugins/gpu_particles_3d_editor_plugin.cpp index 903a3689b02..5ac58795d10 100644 --- a/editor/plugins/gpu_particles_3d_editor_plugin.cpp +++ b/editor/plugins/gpu_particles_3d_editor_plugin.cpp @@ -362,6 +362,7 @@ void GPUParticles3DEditor::_generate_emission_points() { Ref tex; tex.instantiate(); + tex->create_from_image(image); Ref material = node->get_process_material(); ERR_FAIL_COND(material.is_null()); @@ -390,6 +391,7 @@ void GPUParticles3DEditor::_generate_emission_points() { Ref tex2; tex2.instantiate(); + tex2->create_from_image(image2); material->set_emission_normal_texture(tex2); } else {