summaryrefslogtreecommitdiff
path: root/modules/visual_script
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-04-13 21:39:03 +0200
committerGitHub <noreply@github.com>2020-04-13 21:39:03 +0200
commitfa0902a65d4bdc2755e823bbdf0828f91e76a14b (patch)
tree792481e978eddc5c008c1a2daca2a5c411e912ed /modules/visual_script
parentd4b211bb3d8c71dc48b933fe1cede6250069b857 (diff)
parentc2ffaf5b2b6b2d167c7bcfdcc7b1ad58c8d7c858 (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.cpp2
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;