Browse Source

Merge pull request #36668 from Chaosus/shader_fix_range

Fix shader's step hint range for integers
Yuri Roubinsky 5 years ago
parent
commit
8ffa35e44f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      servers/visual/shader_language.cpp

+ 1 - 1
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;