aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/property_editor.cpp
diff options
context:
space:
mode:
authorBojidar Marinov2016-07-25 12:07:02 +0300
committerBojidar Marinov2016-07-25 12:41:17 +0300
commit7dbdfe8dbd761631850db2e3476b74ae082fbe14 (patch)
tree807db85e4a5421836fb4f7ad9a28a3dde510b687 /tools/editor/property_editor.cpp
parent8fbe804bd17f919f53daae70a229c07ca4d8a355 (diff)
downloadgodot-7dbdfe8dbd761631850db2e3476b74ae082fbe14.tar.gz
godot-7dbdfe8dbd761631850db2e3476b74ae082fbe14.tar.zst
godot-7dbdfe8dbd761631850db2e3476b74ae082fbe14.zip
Fix default ranges of the inspector
Probably closes #3091 (Should apply to Variant::REAL and Variant::INT)
Diffstat (limited to '')
-rw-r--r--tools/editor/property_editor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/editor/property_editor.cpp b/tools/editor/property_editor.cpp
index 54d197f10..26a49e92f 100644
--- a/tools/editor/property_editor.cpp
+++ b/tools/editor/property_editor.cpp
@@ -3039,10 +3039,10 @@ void PropertyEditor::update_tree() {
} else {
if (p.type == Variant::REAL) {
- item->set_range_config(1, -65536, 65535, 0.001);
+ item->set_range_config(1, -16777216, 16777216, 0.001);
} else {
- item->set_range_config(1, -65536, 65535, 1);
+ item->set_range_config(1, -2147483647, 2147483647, 1);
}
};