summaryrefslogtreecommitdiff
path: root/editor/property_editor.cpp
diff options
context:
space:
mode:
authorGeequlim <geequlim@gmail.com>2017-07-31 14:15:38 +0800
committerGeequlim <geequlim@gmail.com>2017-07-31 14:15:38 +0800
commit0b11062d9360080f6861c51097c551b4ea485550 (patch)
tree54ccb846149665b9ae9d6a535838cbf5413ca3e9 /editor/property_editor.cpp
parentb276d92c8a63887df011032bc95d98bbb9c51c70 (diff)
Fix property type expose of Control.stretch_ratio.
Fix set integer value from inspector to round instead of floor.
Diffstat (limited to 'editor/property_editor.cpp')
-rw-r--r--editor/property_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp
index 71afa8ac79..1d91d9a885 100644
--- a/editor/property_editor.cpp
+++ b/editor/property_editor.cpp
@@ -3859,7 +3859,7 @@ void PropertyEditor::_item_edited() {
break;
if (type == Variant::INT)
- _edit_set(name, int(item->get_range(1)), refresh_all);
+ _edit_set(name, round(item->get_range(1)), refresh_all);
else
_edit_set(name, item->get_range(1), refresh_all);
} break;