summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2021-03-01 10:23:05 +0300
committerGitHub <noreply@github.com>2021-03-01 10:23:05 +0300
commit75ac36f9393036a10612838b95227391c825695e (patch)
treec5d2cd2f2ab760db286926351d4dc97de19c3ef7
parent165d77a496f40fd87d85a75a8e6734f2ebec9d03 (diff)
parent6f9bdaf656da71e1a20b04228e2ba4748d762ea7 (diff)
Merge pull request #46541 from Chaosus/vs_fix_step
Fix incorrect switching port type in VisualShaderNodeStep
-rw-r--r--scene/resources/visual_shader_nodes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/visual_shader_nodes.cpp b/scene/resources/visual_shader_nodes.cpp
index d6200059f6..566d0e659e 100644
--- a/scene/resources/visual_shader_nodes.cpp
+++ b/scene/resources/visual_shader_nodes.cpp
@@ -3032,7 +3032,7 @@ void VisualShaderNodeStep::set_op_type(OpType p_op_type) {
set_input_port_default_value(0, 0.0); // edge
}
if (op_type == OP_TYPE_SCALAR) {
- set_input_port_default_value(1, 0.0); // x
+ set_input_port_default_value(1, Vector3(0.0, 0.0, 0.0)); // x
}
break;
default: