diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-02-01 20:56:16 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-02-01 20:57:41 +0300 |
commit | 8350f7a587c7a6824f48f3edb936b49ce3462336 (patch) | |
tree | 2ca9b6b3bf36cca8c9681415c76a36038f56c3a5 /source/blender | |
parent | baa8b63111f2ac5439155b6e0807a22f550b40f0 (diff) |
RNA: add readonly pixelsize to userprefs
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index 0d09327916b..df6589ab4fc 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"); |