From fab2158ef1e9b649864a43c86049087546971a6e Mon Sep 17 00:00:00 2001 From: Alex Hirsch Date: Thu, 4 Mar 2021 19:16:25 +0100 Subject: [PATCH] Fix missing ImageTexture::create_from_image call in GPUParticles3DEditor::_generate_emission_points Images for emission point texture and normals were created, but not transferred to textures. fix #43643 --- editor/plugins/gpu_particles_3d_editor_plugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/plugins/gpu_particles_3d_editor_plugin.cpp b/editor/plugins/gpu_particles_3d_editor_plugin.cpp index 433a5ae51c5f..819596fb73db 100644 --- a/editor/plugins/gpu_particles_3d_editor_plugin.cpp +++ b/editor/plugins/gpu_particles_3d_editor_plugin.cpp @@ -328,7 +328,6 @@ void GPUParticles3DEditor::edit(GPUParticles3D *p_particles) { } void GPUParticles3DEditor::_generate_emission_points() { - /// hacer codigo aca Vector points; Vector normals; @@ -360,6 +359,7 @@ void GPUParticles3DEditor::_generate_emission_points() { Ref tex; tex.instance(); + tex->create_from_image(image); Ref material = node->get_process_material(); ERR_FAIL_COND(material.is_null()); @@ -388,6 +388,7 @@ void GPUParticles3DEditor::_generate_emission_points() { Ref tex2; tex2.instance(); + tex2->create_from_image(image2); material->set_emission_normal_texture(tex2); } else {