Merge pull request #46541 from Chaosus/vs_fix_step

Fix incorrect switching port type in VisualShaderNodeStep
This commit is contained in:
Yuri Roubinsky 2021-03-01 10:23:05 +03:00 committed by GitHub
commit 75ac36f939
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: