diff options
author | Ton Roosendaal <ton@blender.org> | 2009-04-14 19:59:52 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-04-14 19:59:52 +0400 |
commit | 5b3d7bfdf6305e880f89d58cbe852a8d2ba7b241 (patch) | |
tree | cbe98c77a1d09dcdbc4a1e4130860d5bd3165a3e /source/blender/makesrna | |
parent | 3ef247eed953ea28aca2bc92879ff1c32f04b7f4 (diff) |
2.5
More cleanup!
- removed old UI font completely, including from uiBeginBlock
- emboss hints for uiBlock only have three types now;
Regular, Pulldown, or "Nothing" (only icon/text)
- removed old font path from Userdef
- removed all old button theme hinting
- removed old "auto block" to merge buttons in groups
(was only in use for radiosity buttons)
And went over all warnings. One hooray for make giving clean output :)
Well, we need uniform definitions for warnings, so people at least fix
them... here's the real bad bugs I found:
- in mesh code, a call to editmesh mixed *em and *me
- in armature, ED_util.h was not included, so no warnings for wrong call
to ED_undo_push()
- The extern Py api .h was not included in the bpy_interface.c, showing
a several calls using different args.
Further just added the missing includes, and removed unused vars.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_nodetree.c | 2 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 12 |
2 files changed, 5 insertions, 9 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index 6fb6a67650f..1b73ae9a1cf 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -252,7 +252,7 @@ static void def_vector_curve(BlenderRNA *brna, int id) static void def_val_to_rgb(BlenderRNA *brna, int id) { StructRNA *srna; - PropertyRNA *prop; +// PropertyRNA *prop; srna= def_node(brna, id); diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index 60ab2e96784..74faa0f4a96 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -1508,14 +1508,10 @@ static void rna_def_userdef_language(BlenderRNA *brna) RNA_def_property_boolean_sdna(prop, NULL, "transopts", USER_DOTRANSLATE); RNA_def_property_ui_text(prop, "International Fonts", "Use international fonts."); - prop= RNA_def_property(srna, "font_size", PROP_INT, PROP_NONE); - RNA_def_property_int_sdna(prop, NULL, "fontsize"); - RNA_def_property_range(prop, 8, 16); - RNA_def_property_ui_text(prop, "Font Size", "International font size (points)."); - - prop= RNA_def_property(srna, "font_filename", PROP_STRING, PROP_FILEPATH); - RNA_def_property_string_sdna(prop, NULL, "fontname"); - RNA_def_property_ui_text(prop, "Font Filename", "International font filename."); + prop= RNA_def_property(srna, "dpi", PROP_INT, PROP_NONE); + RNA_def_property_int_sdna(prop, NULL, "dpi"); + RNA_def_property_range(prop, 48, 128); + RNA_def_property_ui_text(prop, "DPI", "Font size and resolution for display."); /* Language Selection */ |