summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2020-02-29 10:15:08 +0300
committerGitHub <noreply@github.com>2020-02-29 10:15:08 +0300
commit8ffa35e44f93321d618b81ec48817f5de8668a83 (patch)
tree2e238c6b53585edef0f61f8c15301aa3a485ec35
parent5bbb057cc9107d0585ab9e6b236919fa4b7023c4 (diff)
parent924a9bfd1680a2781d3eeb04a930682c9015dda7 (diff)
Merge pull request #36668 from Chaosus/shader_fix_range
Fix shader's step hint range for integers
-rw-r--r--servers/visual/shader_language.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/visual/shader_language.cpp b/servers/visual/shader_language.cpp
index 97a18e6d86..ed3feccb43 100644
--- a/servers/visual/shader_language.cpp
+++ b/servers/visual/shader_language.cpp
@@ -2646,7 +2646,7 @@ PropertyInfo ShaderLanguage::uniform_to_property_info(const ShaderNode::Uniform
pi.type = Variant::INT;
if (p_uniform.hint == ShaderLanguage::ShaderNode::Uniform::HINT_RANGE) {
pi.hint = PROPERTY_HINT_RANGE;
- pi.hint_string = rtos(p_uniform.hint_range[0]) + "," + rtos(p_uniform.hint_range[1]);
+ pi.hint_string = rtos(p_uniform.hint_range[0]) + "," + rtos(p_uniform.hint_range[1]) + "," + rtos(p_uniform.hint_range[2]);
}
} break;