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:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user