summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/language_server/gdscript_language_protocol.h
diff options
context:
space:
mode:
authoraaronp64 <aaronp.code@gmail.com>2024-06-06 15:21:21 -0400
committeraaronp64 <aaronp.code@gmail.com>2024-06-06 15:21:21 -0400
commit73343a2e7f83430511e514fb8cd67feb30a26052 (patch)
treecedf6feb8989ff9130fcdda37776a3a8208bb176 /modules/gdscript/language_server/gdscript_language_protocol.h
parente96ad5af98547df71b50c4c4695ac348638113e0 (diff)
downloadredot-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