1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Merge pull request #37851 from nicomitchell/FixMathRoundTypeReturn

Change visual script round function output type to float
This commit is contained in:
Rémi Verschelde
2020-04-13 21:39:03 +02:00
committed by GitHub

View File

@@ -508,7 +508,7 @@ PropertyInfo VisualScriptBuiltinFunc::get_output_value_port_info(int p_idx) cons
} break;
case MATH_POSMOD:
case MATH_ROUND: {
t = Variant::INT;
t = Variant::FLOAT;
} break;
case MATH_ABS: {
t = Variant::NIL;