Commit: f461ba611fae5889c6202bd3e76dc741392e9229
Author: Severin
Date:   Sat Dec 29 18:40:47 2018 +0100
Branches: userpref_redesign
https://developer.blender.org/rBf461ba611fae5889c6202bd3e76dc741392e9229

Fix merge errors and whitespace cleanup

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

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

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

diff --git a/source/blender/blenloader/intern/versioning_280.c 
b/source/blender/blenloader/intern/versioning_280.c
index b3c0bd660be..3c61f7c0156 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -2413,9 +2413,7 @@ void blo_do_versions_280(FileData *fd, Library 
*UNUSED(lib), Main *bmain)
                }
        }
 
-       {
-               /* Versioning code until next subversion bump goes here. */
-
+       if (!MAIN_VERSION_ATLEAST(bmain, 280, 36)) {
                if (!DNA_struct_elem_find(fd->filesdna, "View3DShading", 
"float", "curvature_ridge_factor")) {
                        for (bScreen *screen = bmain->screen.first; screen; 
screen = screen->id.next) {
                                for (ScrArea *sa = screen->areabase.first; sa; 
sa = sa->next) {
diff --git a/source/blender/makesrna/intern/rna_userdef.c 
b/source/blender/makesrna/intern/rna_userdef.c
index aab3d857816..7a1573cd1ec 100644
--- a/source/blender/makesrna/intern/rna_userdef.c
+++ b/source/blender/makesrna/intern/rna_userdef.c
@@ -3663,15 +3663,17 @@ static void rna_def_userdef_view(BlenderRNA *brna)
                {0, NULL, 0, NULL, NULL}
        };
 
-    static const EnumPropertyItem color_picker_types[] = {
-        {USER_CP_CIRCLE_HSV, "CIRCLE_HSV", 0, "Circle (HSV)", "A circular 
Hue/Saturation color wheel, with Value slider"},
-        {USER_CP_CIRCLE_HSL, "CIRCLE_HSL", 0, "Circle (HSL)", "A circular 
Hue/Saturation color wheel, with Lightness slider"},
-        {USER_CP_SQUARE_SV, "SQUARE_SV", 0, "Square (SV + H)", "A square 
showing Saturation/Value, with Hue slider"},
-        {USER_CP_SQUARE_HS, "SQUARE_HS", 0, "Square (HS + V)", "A square 
showing Hue/Saturation, with Value slider"},
-        {USER_CP_SQUARE_HV, "SQUARE_HV", 0, "Square (HV + S)", "A square 
showing Hue/Value, with Saturation slider"},
-        {0, NULL, 0, NULL, NULL}
-    };
-    
+       static const EnumPropertyItem color_picker_types[] = {
+               {USER_CP_CIRCLE_HSV, "CIRCLE_HSV", 0, "Circle (HSV)", "A 
circular Hue/Saturation color wheel, with "
+                                                     "Value slider"},
+               {USER_CP_CIRCLE_HSL, "CIRCLE_HSL", 0, "Circle (HSL)", "A 
circular Hue/Saturation color wheel, with "
+                                                                     
"Lightness slider"},
+               {USER_CP_SQUARE_SV, "SQUARE_SV", 0, "Square (SV + H)", "A 
square showing Saturation/Value, with Hue slider"},
+               {USER_CP_SQUARE_HS, "SQUARE_HS", 0, "Square (HS + V)", "A 
square showing Hue/Saturation, with Value slider"},
+               {USER_CP_SQUARE_HV, "SQUARE_HV", 0, "Square (HV + S)", "A 
square showing Hue/Value, with Saturation slider"},
+               {0, NULL, 0, NULL, NULL}
+       };
+
        static const EnumPropertyItem zoom_frame_modes[] = {
                {ZOOM_FRAME_MODE_KEEP_RANGE, "KEEP_RANGE", 0, "Keep Range", ""},
                {ZOOM_FRAME_MODE_SECONDS, "SECONDS", 0, "Seconds", ""},
@@ -3773,12 +3775,12 @@ static void rna_def_userdef_view(BlenderRNA *brna)
        RNA_def_property_range(prop, 1, 40);
        RNA_def_property_ui_text(prop, "Sub Level Menu Open Delay",
                                 "Time delay in 1/10 seconds before 
automatically opening sub level menus");
-    
-    prop = RNA_def_property(srna, "color_picker_type", PROP_ENUM, PROP_NONE);
-    RNA_def_property_enum_items(prop, color_picker_types);
-    RNA_def_property_enum_sdna(prop, NULL, "color_picker_type");
-    RNA_def_property_ui_text(prop, "Color Picker Type", "Different styles of 
displaying the color picker widget");
-    RNA_def_property_update(prop, 0, "rna_userdef_update");
+
+       prop = RNA_def_property(srna, "color_picker_type", PROP_ENUM, 
PROP_NONE);
+       RNA_def_property_enum_items(prop, color_picker_types);
+       RNA_def_property_enum_sdna(prop, NULL, "color_picker_type");
+       RNA_def_property_ui_text(prop, "Color Picker Type", "Different styles 
of displaying the color picker widget");
+       RNA_def_property_update(prop, 0, "rna_userdef_update");
 
        /* pie menus */
        prop = RNA_def_property(srna, "pie_initial_timeout", PROP_INT, 
PROP_NONE);
@@ -3843,14 +3845,14 @@ static void rna_def_userdef_view(BlenderRNA *brna)
        RNA_def_property_enum_bitflag_sdna(prop, NULL, "uiflag");
        RNA_def_property_ui_text(prop, "Header Position", "Default header 
position for new space-types");
        RNA_def_property_update(prop, 0, "rna_userdef_update");
-    
-    static const EnumPropertyItem text_hinting_items[] = {
-        {0, "AUTO", 0, "Auto", ""},
-        {USER_TEXT_HINTING_NONE, "NONE", 0, "None", ""},
-        {USER_TEXT_HINTING_SLIGHT, "SLIGHT", 0, "Slight", ""},
-        {USER_TEXT_HINTING_FULL, "FULL", 0, "Full", ""},
-        {0, NULL, 0, NULL, NULL}
-    };
+
+       static const EnumPropertyItem text_hinting_items[] = {
+               {0, "AUTO", 0, "Auto", ""},
+               {USER_TEXT_HINTING_NONE, "NONE", 0, "None", ""},
+               {USER_TEXT_HINTING_SLIGHT, "SLIGHT", 0, "Slight", ""},
+               {USER_TEXT_HINTING_FULL, "FULL", 0, "Full", ""},
+               {0, NULL, 0, NULL, NULL}
+       };
 
        /* mini axis */
        static const EnumPropertyItem mini_axis_type_items[] = {
@@ -3939,66 +3941,64 @@ static void rna_def_userdef_view(BlenderRNA *brna)
        RNA_def_property_ui_text(prop, "Zoom Seconds",
                                 "Seconds around cursor that we zoom around");
 
-    
-    /* Text. */
-    
-    prop = RNA_def_property(srna, "use_text_antialiasing", PROP_BOOLEAN, 
PROP_NONE);
-    RNA_def_property_boolean_negative_sdna(prop, NULL, "text_render", 
USER_TEXT_DISABLE_AA);
-    RNA_def_property_ui_text(prop, "Text Anti-aliasing", "Draw user interface 
text anti-aliased");
-    RNA_def_property_update(prop, 0, "rna_userdef_text_update");
-    
-    prop = RNA_def_property(srna, "text_hinting", PROP_ENUM, PROP_NONE);
-    RNA_def_property_enum_bitflag_sdna(prop, NULL, "text_render");
-    RNA_def_property_enum_items(prop, text_hinting_items);
-    RNA_def_property_ui_text(prop, "Text Hinting", "Method for making user 
interface text render sharp");
-    RNA_def_property_update(prop, 0, "rna_userdef_text_update");
-    
-    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");
-    RNA_def_property_update(prop, NC_WINDOW, "rna_userdef_language_update");
-    
-    prop = RNA_def_property(srna, "font_path_ui_mono", PROP_STRING, 
PROP_FILEPATH);
-    RNA_def_property_string_sdna(prop, NULL, "font_path_ui_mono");
-    RNA_def_property_ui_text(prop, "Mono-space Font", "Path to interface 
mono-space Font");
-    RNA_def_property_update(prop, NC_WINDOW, "rna_userdef_language_update");
-    
-    
-    /* Language. */
-    
-    prop = RNA_def_property(srna, "use_international_fonts", PROP_BOOLEAN, 
PROP_NONE);
-    RNA_def_property_boolean_sdna(prop, NULL, "transopts", USER_DOTRANSLATE);
-    RNA_def_property_ui_text(prop, "Translate UI", "Enable UI translation and 
use international fonts");
-    RNA_def_property_update(prop, NC_WINDOW, "rna_userdef_language_update");
-    
-    prop = RNA_def_property(srna, "language", PROP_ENUM, PROP_NONE);
-    RNA_def_property_enum_items(prop, rna_enum_language_default_items);
+
+       /* Text. */
+
+       prop = RNA_def_property(srna, "use_text_antialiasing", PROP_BOOLEAN, 
PROP_NONE);
+       RNA_def_property_boolean_negative_sdna(prop, NULL, "text_render", 
USER_TEXT_DISABLE_AA);
+       RNA_def_property_ui_text(prop, "Text Anti-aliasing", "Draw user 
interface text anti-aliased");
+       RNA_def_property_update(prop, 0, "rna_userdef_text_update");
+
+       prop = RNA_def_property(srna, "text_hinting", PROP_ENUM, PROP_NONE);
+       RNA_def_property_enum_bitflag_sdna(prop, NULL, "text_render");
+       RNA_def_property_enum_items(prop, text_hinting_items);
+       RNA_def_property_ui_text(prop, "Text Hinting", "Method for making user 
interface text render sharp");
+       RNA_def_property_update(prop, 0, "rna_userdef_text_update");
+
+       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");
+       RNA_def_property_update(prop, NC_WINDOW, "rna_userdef_language_update");
+
+       prop = RNA_def_property(srna, "font_path_ui_mono", PROP_STRING, 
PROP_FILEPATH);
+       RNA_def_property_string_sdna(prop, NULL, "font_path_ui_mono");
+       RNA_def_property_ui_text(prop, "Mono-space Font", "Path to interface 
mono-space Font");
+       RNA_def_property_update(prop, NC_WINDOW, "rna_userdef_language_update");
+
+
+       /* Language. */
+
+       prop = RNA_def_property(srna, "use_international_fonts", PROP_BOOLEAN, 
PROP_NONE);
+       RNA_def_property_boolean_sdna(prop, NULL, "transopts", 
USER_DOTRANSLATE);
+       RNA_def_property_ui_text(prop, "Translate UI", "Enable UI translation 
and use international fonts");
+       RNA_def_property_update(prop, NC_WINDOW, "rna_userdef_language_update");
+
+       prop = RNA_def_property(srna, "language", PROP_ENUM, PROP_NONE);
+       RNA_def_property_enum_items(prop, rna_enum_language_default_items);
 #ifdef WITH_INTERNATIONAL
-    RNA_def_property_enum_funcs(prop, NULL, NULL, 
"rna_lang_enum_properties_itemf");
+       RNA_def_property_enum_funcs(prop, NULL, NULL, 
"rna_lang_enum_properties_itemf");
 #endif
-    RNA_def_property_ui_text(prop, "Language", "Language used for 
translation");
-    RNA_def_property_update(prop, NC_WINDOW, "rna_userdef_language_update");
-    
-    prop = RNA_def_property(srna, "use_translate_tooltips", PROP_BOOLEAN, 
PROP_NONE);
-    RNA_def_property_boolean_sdna(prop, NULL, "transopts", USER_TR_TOOLTIPS);
-    RNA_def_property_ui_text(prop, "Translate Tooltips",
-                             "Translate the descriptions when hovering UI 
elements (recommended)");
-    RNA_def_property_update(prop, 0, "rna_userdef_update");
-    
-    prop = RNA_def_property(srna, "use_translate_interface", PROP_BOOLEAN, 
PROP_NONE);
-    RNA_def_property_boolean_sdna(prop, NULL, "transopts", USER_TR_IFACE);
-    RNA_def_property_ui_text(prop, "Translate Interface",
-                             "Translate all labels in menus, buttons and 
panels "
-                             "(note that this might make it hard to follow 
tutorials or the manual)");
-    RNA_def_property_update(prop, 0, "rna_userdef_update");
-    
-    prop = RNA_def_property(srna, "use_translate_new_dataname", PROP_BOOLEAN, 
PROP_NONE);
-    RNA_def_property_boolean_sdna(prop, NULL, "transopts", USER_TR_NEWDA

@@ Diff output truncated at 10240 characters. @@

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

Reply via email to