summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-09-25 00:06:55 +0200
committerGitHub <noreply@github.com>2021-09-25 00:06:55 +0200
commitd395dbae2647335b393ee8d473c5158f0712ba49 (patch)
tree53f87bc025a83ac5a86a1e628c4638b9bc41bddf
parent46cc0af5c509f33b65cc57e45e777b2d2a0a303f (diff)
parented5f6cc3515792de02afa2f96e508942701f7cc8 (diff)
Merge pull request #53036 from CaptainProton42/fix-gpuparticles3d-emission-points-from-node
-rw-r--r--editor/plugins/gpu_particles_3d_editor_plugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/gpu_particles_3d_editor_plugin.cpp b/editor/plugins/gpu_particles_3d_editor_plugin.cpp
index 903a3689b0..5ac58795d1 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<ImageTexture> tex;
tex.instantiate();
+ tex->create_from_image(image);
Ref<ParticlesMaterial> material = node->get_process_material();
ERR_FAIL_COND(material.is_null());
@@ -390,6 +391,7 @@ void GPUParticles3DEditor::_generate_emission_points() {
Ref<ImageTexture> tex2;
tex2.instantiate();
+ tex2->create_from_image(image2);
material->set_emission_normal_texture(tex2);
} else {