diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-04-13 21:39:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-13 21:39:03 +0200 |
commit | fa0902a65d4bdc2755e823bbdf0828f91e76a14b (patch) | |
tree | 792481e978eddc5c008c1a2daca2a5c411e912ed /modules/visual_script | |
parent | d4b211bb3d8c71dc48b933fe1cede6250069b857 (diff) | |
parent | c2ffaf5b2b6b2d167c7bcfdcc7b1ad58c8d7c858 (diff) |
Merge pull request #37851 from nicomitchell/FixMathRoundTypeReturn
Change visual script round function output type to float
Diffstat (limited to 'modules/visual_script')
-rw-r--r-- | modules/visual_script/visual_script_builtin_funcs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/visual_script/visual_script_builtin_funcs.cpp b/modules/visual_script/visual_script_builtin_funcs.cpp index 39d8f7c082..2b5a17c36f 100644 --- a/modules/visual_script/visual_script_builtin_funcs.cpp +++ b/modules/visual_script/visual_script_builtin_funcs.cpp @@ -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; |