Blender Git Loki

Git Commits -> Revision 7615019

Revision 7615019 by Alexander Gavrilov
December 26, 2021, 15:11 (GMT)
RNA: add a property flag to display exact integer values without fraction.

Add a flag to display exact integer values of a floating point field
without a fraction, for use in case when the value can technically be
fractional, but most commonly is supposed to be integer.

The fraction is discarded in the normal display mode and when copying
the value to clipboard, but not when editing to remind the user that
the field allows fractions.

Also, fix a precision issue when stepping down from 1 to 0 via the
left decrement button and step 100 results in a small nonzero value.

Commit Details:

Full Hash: 7615019f26ac171952806fedecd6820c9381a2d0
Parent Commit: 70101e1
Lines Changed: +31, -6

6 Modified Paths:

/source/blender/editors/include/UI_interface.h (+3, -0) (Diff)
/source/blender/editors/interface/interface.c (+18, -2) (Diff)
/source/blender/editors/interface/interface_handlers.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_action.c (+4, -2) (Diff)
/source/blender/makesrna/RNA_types.h (+4, -1) (Diff)
/source/blender/python/intern/bpy_props.c (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021