diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2021-11-12 19:21:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-12 19:21:49 +0300 |
commit | 9da86c2fb73205869adf5a7449f5e4246d845db9 (patch) | |
tree | d08f0b4b7d9e59cadbd67ba47ad7127b5a59e506 /scene/resources/visual_shader_particle_nodes.cpp | |
parent | 0ba215642dcbc9e7386f2e02173e6884d0003c55 (diff) | |
parent | d0fbc467a674344a26963151945d40ab19c0e1af (diff) |
Merge pull request #54920 from Chaosus/vs_fix_crash
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); |