Commit: 8350f7a587c7a6824f48f3edb936b49ce3462336
Author: Campbell Barton
Date:   Mon Feb 2 04:56:16 2015 +1100
Branches: master
https://developer.blender.org/rB8350f7a587c7a6824f48f3edb936b49ce3462336

RNA: add readonly pixelsize to userprefs

===================================================================

M       source/blender/makesrna/intern/rna_userdef.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_userdef.c 
b/source/blender/makesrna/intern/rna_userdef.c
index 0d09327..df6589a 100644
--- a/source/blender/makesrna/intern/rna_userdef.c
+++ b/source/blender/makesrna/intern/rna_userdef.c
@@ -3868,6 +3868,11 @@ static void rna_def_userdef_system(BlenderRNA *brna)
        RNA_def_property_ui_text(prop, "Virtual Pixel Mode", "Modify the pixel 
size for hi-res devices");
        RNA_def_property_update(prop, 0, "rna_userdef_virtual_pixel_update");
 
+       prop = RNA_def_property(srna, "pixel_size", PROP_FLOAT, PROP_NONE);
+       RNA_def_property_flag(prop, PROP_EDITABLE);
+       RNA_def_property_float_sdna(prop, NULL, "pixelsize");
+       RNA_def_property_ui_text(prop, "Pixel Size", "");
+
        prop = RNA_def_property(srna, "font_path_ui", PROP_STRING, 
PROP_FILEPATH);
        RNA_def_property_string_sdna(prop, NULL, "font_path_ui");
        RNA_def_property_ui_text(prop, "Interface Font", "Path to interface 
font");

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to