1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-19 14:31:59 +00:00

Fix default ranges of the inspector

Probably closes #3091
(Should apply to Variant::REAL and Variant::INT)
This commit is contained in:
Bojidar Marinov
2016-07-25 12:07:02 +03:00
parent 8fbe804bd1
commit 7dbdfe8dbd

View File

@@ -3039,10 +3039,10 @@ void PropertyEditor::update_tree() {
} else { } else {
if (p.type == Variant::REAL) { if (p.type == Variant::REAL) {
item->set_range_config(1, -65536, 65535, 0.001); item->set_range_config(1, -16777216, 16777216, 0.001);
} else { } else {
item->set_range_config(1, -65536, 65535, 1); item->set_range_config(1, -2147483647, 2147483647, 1);
} }
}; };