[Bf-blender-cvs] [e06888cf897] master: Cleanup: Add comment explaining DPI influence on RNA pixel-properties
Julian Eisel
noreply at git.blender.org
Tue Mar 10 15:21:01 CET 2020
Commit: e06888cf897ff68bdd606b05ca36f533bc8e4de1
Author: Julian Eisel
Date: Tue Mar 10 15:12:20 2020 +0100
Branches: master
https://developer.blender.org/rBe06888cf897ff68bdd606b05ca36f533bc8e4de1
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.
===================================================================
M source/blender/makesrna/RNA_types.h
===================================================================
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,
More information about the Bf-blender-cvs
mailing list