Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2020-03-10 17:12:20 +0300
committerJulian Eisel <julian@blender.org>2020-03-10 17:19:22 +0300
commite06888cf897ff68bdd606b05ca36f533bc8e4de1 (patch)
treeeb5888b5446c32a0220854658447ba6be14b07ee /source/blender/makesrna/RNA_types.h
parentd55231e5a1d9cf8ec47ec691cafdb3453e6b98ed (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.
Diffstat (limited to 'source/blender/makesrna/RNA_types.h')
-rw-r--r--source/blender/makesrna/RNA_types.h2
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,