From 616d10624759fcb15e829d536221fc545a29c459 Mon Sep 17 00:00:00 2001 From: Nico Mitchell Date: Mon, 13 Apr 2020 13:02:40 -0400 Subject: [PATCH] Change round return type to float (cherry picked from commits c2ffaf5b2b6b2d167c7bcfdcc7b1ad58c8d7c858 and f7cc2b090cf1e32c7671a35839863d0c5d448715) --- modules/visual_script/visual_script_builtin_funcs.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/visual_script/visual_script_builtin_funcs.cpp b/modules/visual_script/visual_script_builtin_funcs.cpp index 2894f6367be..59de3308a02 100644 --- a/modules/visual_script/visual_script_builtin_funcs.cpp +++ b/modules/visual_script/visual_script_builtin_funcs.cpp @@ -506,10 +506,12 @@ PropertyInfo VisualScriptBuiltinFunc::get_output_value_port_info(int p_idx) cons case MATH_CEIL: { t = Variant::REAL; } break; - case MATH_POSMOD: - case MATH_ROUND: { + case MATH_POSMOD: { t = Variant::INT; } break; + case MATH_ROUND: { + t = Variant::REAL; + } break; case MATH_ABS: { t = Variant::NIL; } break;