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
commit fa0902a65d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;