From f7cc2b090cf1e32c7671a35839863d0c5d448715 Mon Sep 17 00:00:00 2001 From: Nico Mitchell Date: Tue, 14 Apr 2020 17:08:22 -0400 Subject: [PATCH] Change MATH_POSMOD return type back to INT --- modules/visual_script/visual_script_builtin_funcs.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/visual_script/visual_script_builtin_funcs.cpp b/modules/visual_script/visual_script_builtin_funcs.cpp index 2b5a17c36fe..bb291b1cb61 100644 --- a/modules/visual_script/visual_script_builtin_funcs.cpp +++ b/modules/visual_script/visual_script_builtin_funcs.cpp @@ -506,7 +506,9 @@ PropertyInfo VisualScriptBuiltinFunc::get_output_value_port_info(int p_idx) cons case MATH_CEIL: { t = Variant::FLOAT; } break; - case MATH_POSMOD: + case MATH_POSMOD: { + t = Variant::INT; + } break; case MATH_ROUND: { t = Variant::FLOAT; } break;