diff options
author | Yuri Rubinsky <chaosus89@gmail.com> | 2022-11-12 06:50:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-12 06:50:35 +0300 |
commit | 6521eccaaec2f8dd87373ee15a1fb0d889aef1fd (patch) | |
tree | 67774d97df8a927ed005e9170ee31be2dd33b3d4 /scene | |
parent | ee43b7da2877a53d2100cee96b47ac87b2db5447 (diff) | |
parent | 445062e43bdbe4ee94881430e3f33670a3e7d6d8 (diff) |
Merge pull request #68477 from dzil123/visual_shader_ufunc_input_fix
Fixes https://github.com/godotengine/godot/issues/68463
Diffstat (limited to 'scene')
-rw-r--r-- | scene/resources/visual_shader_nodes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/visual_shader_nodes.cpp b/scene/resources/visual_shader_nodes.cpp index 04637983b5..03abac1b3e 100644 --- a/scene/resources/visual_shader_nodes.cpp +++ b/scene/resources/visual_shader_nodes.cpp @@ -3108,9 +3108,9 @@ void VisualShaderNodeUVFunc::set_function(VisualShaderNodeUVFunc::Function p_fun return; } if (p_func == FUNC_PANNING) { - set_input_port_default_value(2, Vector2()); // offset + set_input_port_default_value(2, Vector2(), get_input_port_default_value(2)); // offset } else { // FUNC_SCALING - set_input_port_default_value(2, Vector2(0.5, 0.5)); // pivot + set_input_port_default_value(2, Vector2(0.5, 0.5), get_input_port_default_value(2)); // pivot } func = p_func; emit_changed(); |