Merge pull request #5900 from bojidar-bg/fix-integer-ranges

Fix default ranges of the inspector, as well as Range.
This commit is contained in:
Rémi Verschelde 2016-07-25 12:46:10 +02:00 committed by GitHub
commit f86176d20b

View file

@ -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);
}
};