summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sichma <sichmada@gmail.com>2019-10-13 00:29:53 +0200
committerDavid Sichma <sichmada@gmail.com>2019-10-13 00:29:53 +0200
commitf7d9f070e1d8dbb8514738997f57ffb1019e4e52 (patch)
tree605ca26f1dc90b2aaa53a3b2c72784140963e0d7
parent9dea035ec57f259da513b0c39d3ecfe987c4b09f (diff)
Increased step precision
Results in nicer numbers for float properties like 20.0 instead of 20.000001
-rw-r--r--editor/editor_properties.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp
index 460f75eef0..e978713c34 100644
--- a/editor/editor_properties.cpp
+++ b/editor/editor_properties.cpp
@@ -2925,7 +2925,7 @@ void EditorInspectorDefaultPlugin::parse_begin(Object *p_object) {
bool EditorInspectorDefaultPlugin::parse_property(Object *p_object, Variant::Type p_type, const String &p_path, PropertyHint p_hint, const String &p_hint_text, int p_usage) {
- float default_float_step = EDITOR_GET("interface/inspector/default_float_step");
+ double default_float_step = EDITOR_GET("interface/inspector/default_float_step");
switch (p_type) {