Blender Git Loki
Git Commits -> Revision 4a08623
Revision 4a08623 by Alexander Gavrilov (temp-angavrilov) December 28, 2021, 11:57 (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: 4a08623254d4e3b751bfa42693ad2054bee44f97
Parent Commit: 02362bb
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)
/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)