diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2021-11-12 18:23:45 +0300 |
---|---|---|
committer | Yuri Roubinsky <chaosus89@gmail.com> | 2021-11-12 18:23:45 +0300 |
commit | d0fbc467a674344a26963151945d40ab19c0e1af (patch) | |
tree | 4a0c7979ee194a8e08bdd94ca1afa731b4b0e8fe /scene/resources/visual_shader_particle_nodes.cpp | |
parent | 57ae154e864befec34c286cab8f3303d17b55912 (diff) |
Fix editor crash due incorrect setup of default texture in visual shader
Diffstat (limited to 'scene/resources/visual_shader_particle_nodes.cpp')
-rw-r--r-- | scene/resources/visual_shader_particle_nodes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/visual_shader_particle_nodes.cpp b/scene/resources/visual_shader_particle_nodes.cpp index c8f6e9182f..7dd4eed15b 100644 --- a/scene/resources/visual_shader_particle_nodes.cpp +++ b/scene/resources/visual_shader_particle_nodes.cpp @@ -351,11 +351,11 @@ String VisualShaderNodeParticleMeshEmitter::generate_code(Shader::Mode p_mode, V Vector<VisualShader::DefaultTextureParam> VisualShaderNodeParticleMeshEmitter::get_default_texture_parameters(VisualShader::Type p_type, int p_id) const { VisualShader::DefaultTextureParam dtp_vx; dtp_vx.name = make_unique_id(p_type, p_id, "mesh_vx"); - dtp_vx.params[0] = position_texture; + dtp_vx.params.push_back(position_texture); VisualShader::DefaultTextureParam dtp_nm; dtp_nm.name = make_unique_id(p_type, p_id, "mesh_nm"); - dtp_nm.params[0] = normal_texture; + dtp_nm.params.push_back(normal_texture); Vector<VisualShader::DefaultTextureParam> ret; ret.push_back(dtp_vx); |