diff options
author | aaronp64 <aaronp.code@gmail.com> | 2024-06-06 15:21:21 -0400 |
---|---|---|
committer | aaronp64 <aaronp.code@gmail.com> | 2024-06-06 15:21:21 -0400 |
commit | 73343a2e7f83430511e514fb8cd67feb30a26052 (patch) | |
tree | cedf6feb8989ff9130fcdda37776a3a8208bb176 /modules/gdscript/language_server/gdscript_language_protocol.h | |
parent | e96ad5af98547df71b50c4c4695ac348638113e0 (diff) | |
download | redot-engine-73343a2e7f83430511e514fb8cd67feb30a26052.tar.gz |
Fix VisualShaderNodeVaryingGetter expanded ports adding ".x" to shader
When VisualShaderNodeVaryingGetter type was Vector2/Vector3/Vector4, expanding the output ports and connecting an individual value to a scalar input would add ".x" to the assignment in the generated shader. This was due to `VisualShaderNodeVarying::get_port_type` ignoring the port number, and always returning the associated vector type. Added checks for `p_port == 0` to return either the vector type, or scalar for expanded ports, matching similar logic in other nodes, like `VisualShaderNodeColorConstant::get_output_port_type`.
Fixes #92832
Diffstat (limited to 'modules/gdscript/language_server/gdscript_language_protocol.h')
0 files changed, 0 insertions, 0 deletions