Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-09-08 23:46:02 +0300
committerHans Goudey <h.goudey@me.com>2021-09-08 23:46:02 +0300
commit4e91cd5c11fa2cbadfdaad8c527a63fed8ae4951 (patch)
treed6896df74eedd780ff33f53ddd94e404fa30184a
parent8f785524ae6309c2bb949537b33146d67d69a149 (diff)
Fix T91255: IDProperty UI as_dict() returns step as default value
Another typo in this section of code.
-rw-r--r--source/blender/python/generic/idprop_py_ui_api.c4
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);
}
}