diff options
author | Hans Goudey <h.goudey@me.com> | 2021-09-08 23:46:02 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-09-08 23:46:02 +0300 |
commit | 4e91cd5c11fa2cbadfdaad8c527a63fed8ae4951 (patch) | |
tree | d6896df74eedd780ff33f53ddd94e404fa30184a /source/blender/python | |
parent | 8f785524ae6309c2bb949537b33146d67d69a149 (diff) |
Fix T91255: IDProperty UI as_dict() returns step as default value
Another typo in this section of code.
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/generic/idprop_py_ui_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/generic/idprop_py_ui_api.c b/source/blender/python/generic/idprop_py_ui_api.c index 42856d88472..7827bd48dfe 100644 --- a/source/blender/python/generic/idprop_py_ui_api.c +++ b/source/blender/python/generic/idprop_py_ui_api.c @@ -468,7 +468,7 @@ static void idprop_ui_data_to_dict_int(IDProperty *property, PyObject *dict) Py_DECREF(list); } else { - PyDict_SetItemString(dict, "default", item = PyLong_FromLong(ui_data->step)); + PyDict_SetItemString(dict, "default", item = PyLong_FromLong(ui_data->default_value)); Py_DECREF(item); } } @@ -499,7 +499,7 @@ static void idprop_ui_data_to_dict_float(IDProperty *property, PyObject *dict) Py_DECREF(list); } else { - PyDict_SetItemString(dict, "default", item = PyFloat_FromDouble(ui_data->step)); + PyDict_SetItemString(dict, "default", item = PyFloat_FromDouble(ui_data->default_value)); Py_DECREF(item); } } |