summaryrefslogtreecommitdiff
path: root/scene/resources
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-10-15 19:31:05 +0200
committerGitHub <noreply@github.com>2021-10-15 19:31:05 +0200
commitb5ece7c36367e74eb93fb3625eb77a848487f9fd (patch)
tree98f85360bc5cdbea62305f9aa9a7e6ca63f577a9 /scene/resources
parentfe4ca9e4df90cf01fe5a1f7a663a7a9e3e8d701d (diff)
parente270644b2061fa43c61c6b8c3e4218b95dcd4d74 (diff)
Merge pull request #53764 from Chaosus/vs_curve_input_port_default
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/visual_shader_nodes.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/visual_shader_nodes.cpp b/scene/resources/visual_shader_nodes.cpp
index e45dfdcb1b..c3d9ef7b04 100644
--- a/scene/resources/visual_shader_nodes.cpp
+++ b/scene/resources/visual_shader_nodes.cpp
@@ -918,6 +918,7 @@ bool VisualShaderNodeCurveTexture::is_use_prop_slots() const {
}
VisualShaderNodeCurveTexture::VisualShaderNodeCurveTexture() {
+ set_input_port_default_value(0, 0.0);
simple_decl = true;
allow_v_resize = false;
}
@@ -1002,6 +1003,7 @@ bool VisualShaderNodeCurveXYZTexture::is_use_prop_slots() const {
}
VisualShaderNodeCurveXYZTexture::VisualShaderNodeCurveXYZTexture() {
+ set_input_port_default_value(0, 0.0);
simple_decl = true;
allow_v_resize = false;
}