diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-04-08 22:55:08 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-04-08 22:55:08 +0400 |
commit | 2b2099cd519d2723dd79af2e1d9035c7cbb12022 (patch) | |
tree | a12fa477bb34c227d9ea69811347f796927b48c7 /source/blender/python | |
parent | d2b55d1171af787f603c6c14129224dc1c038e85 (diff) |
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.
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_props.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_props.c b/source/blender/python/intern/bpy_props.c index 7cef5e23b65..509d37d24e7 100644 --- a/source/blender/python/intern/bpy_props.c +++ b/source/blender/python/intern/bpy_props.c @@ -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) |