Fix #34875: 0 digits of precision was not supported for FloatProperty, now

you can specify precision=0 for this, and use -1 for the default 2.
This commit is contained in:
2013-04-08 18:55:08 +00:00
parent d2b55d1171
commit 2b2099cd51
20 changed files with 110 additions and 104 deletions

View File

@@ -2228,6 +2228,8 @@ BPY_PROPDEF_DESC_DOC
" :type subtype: string\n"
BPY_PROPDEF_UNIT_DOC
BPY_PROPDEF_UPDATE_DOC
" :arg precision: Number of digits of precision to display.\n"
" :type precision: int\n"
);
static PyObject *BPy_FloatProperty(PyObject *self, PyObject *args, PyObject *kw)
{
@@ -2333,6 +2335,8 @@ BPY_PROPDEF_DESC_DOC
BPY_PROPDEF_UNIT_DOC
" :arg size: Vector dimensions in [1, and " STRINGIFY(PYRNA_STACK_ARRAY) "].\n"
" :type size: int\n"
" :arg precision: Number of digits of precision to display.\n"
" :type precision: int\n"
BPY_PROPDEF_UPDATE_DOC
);
static PyObject *BPy_FloatVectorProperty(PyObject *self, PyObject *args, PyObject *kw)