Added step support when exporting integers.

Added step support when exporting integers.

This wasn't possible before and was kinda unclear see #21441
This commit is contained in:
DualMatrix
2018-09-24 18:26:39 +02:00
parent c432ce4ee1
commit 0e37829031
3 changed files with 12 additions and 7 deletions

View File

@ -337,7 +337,7 @@ void EditorPropertyArray::update_property() {
} break;
case Variant::INT: {
EditorPropertyInteger *editor = memnew(EditorPropertyInteger);
editor->setup(-100000, 100000, true, true);
editor->setup(-100000, 100000, 1, true, true);
prop = editor;
} break;
@ -800,7 +800,7 @@ void EditorPropertyDictionary::update_property() {
} break;
case Variant::INT: {
EditorPropertyInteger *editor = memnew(EditorPropertyInteger);
editor->setup(-100000, 100000, true, true);
editor->setup(-100000, 100000, 1, true, true);
prop = editor;
} break;