diff options
author | Julian Eisel <julian@blender.org> | 2020-03-10 17:12:20 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-03-10 17:19:22 +0300 |
commit | e06888cf897ff68bdd606b05ca36f533bc8e4de1 (patch) | |
tree | eb5888b5446c32a0220854658447ba6be14b07ee | |
parent | d55231e5a1d9cf8ec47ec691cafdb3453e6b98ed (diff) |
Cleanup: Add comment explaining DPI influence on RNA pixel-properties
Good to be explicit about the fact that we may still use the pixel
property sub-type when DPI will be applied.
See comments in https://developer.blender.org/D7077.
-rw-r--r-- | source/blender/makesrna/RNA_types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/RNA_types.h b/source/blender/makesrna/RNA_types.h index 7a85f5c372f..66a5df001de 100644 --- a/source/blender/makesrna/RNA_types.h +++ b/source/blender/makesrna/RNA_types.h @@ -121,6 +121,8 @@ typedef enum PropertySubType { PROP_PASSWORD = 6, /* numbers */ + /** A dimension in pixel units, possibly before DPI scaling (so value may not be the final pixel + * value but the one to apply DPI scale to). */ PROP_PIXEL = 12, PROP_UNSIGNED = 13, PROP_PERCENTAGE = 14, |