Use double when setting the default step size

Casting it as a float was causing issues with the progress bar
This commit is contained in:
megalobyte
2021-03-31 22:27:24 -07:00
parent 7db85fffb5
commit d0f3817876
2 changed files with 3 additions and 3 deletions

View File

@ -3282,7 +3282,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, bool p_wide) {
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) {
// atomic types