Usual i18n fixes, and cleanup: fix 'randomise' -> 'randomize' spelling in code.
authorBastien Montagne <montagne29@wanadoo.fr>
Mon, 14 Dec 2015 18:20:31 +0000 (19:20 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Mon, 14 Dec 2015 18:24:05 +0000 (19:24 +0100)
release/scripts/modules/bl_i18n_utils/utils_spell_check.py
release/scripts/startup/bl_ui/properties_grease_pencil_common.py
source/blender/blenkernel/intern/scene.c
source/blender/blenloader/intern/versioning_270.c
source/blender/blenloader/intern/versioning_defaults.c
source/blender/editors/gpencil/gpencil_brush.c
source/blender/editors/gpencil/gpencil_data.c
source/blender/makesdna/DNA_scene_types.h
source/blender/makesrna/intern/rna_sculpt_paint.c

index b1aa4e02ceea2279060c1d4cc9d0478ad9e0a872..3b332264087e0a7351b3d4f51748e27f165c15b5 100644 (file)
@@ -408,6 +408,7 @@ class SpellChecker:
         # Blender terms
         "audaspace",
         "bbone",
+        "bmesh",
         "breakdowner",
         "bspline",
         "bweight",
index 59c05c192fdb8f4adeca80c4104d3aa51d765dad..9bb31a2b4382064720fc7f52a954bc380a7040ef 100644 (file)
@@ -408,7 +408,7 @@ class GPENCIL_PIE_sculpt(Menu):
         row = pie.row()
         row.prop_enum(settings, "tool", value='SMOOTH')
         row.prop_enum(settings, "tool", value='THICKNESS')
-        row.prop_enum(settings, "tool", value='RANDOMISE')
+        row.prop_enum(settings, "tool", value='RANDOMIZE')
 
 
 ###############################
index b2ef693c7eb1ebac1fafc4fecb6cf4609fd5d5d9..504c1166019ae323617b47dd10ee2c671ad973be 100644 (file)
@@ -786,7 +786,7 @@ void BKE_scene_init(Scene *sce)
                gp_brush->strength = 0.5f; // XXX?
                gp_brush->flag = GP_EDITBRUSH_FLAG_USE_FALLOFF;
                
-               gp_brush = &gset->brush[GP_EDITBRUSH_TYPE_RANDOMISE];
+               gp_brush = &gset->brush[GP_EDITBRUSH_TYPE_RANDOMIZE];
                gp_brush->size = 25;
                gp_brush->strength = 0.5f;
                gp_brush->flag = GP_EDITBRUSH_FLAG_USE_FALLOFF;
index 8cf933207abed2e5c898c889e81c75d2d7205e15..72312d7985c7b2ccd6b0d3e76c3fca65f3214d40 100644 (file)
@@ -974,7 +974,7 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main)
                                brush->strength = 0.5f; // XXX?
                                brush->flag = GP_EDITBRUSH_FLAG_USE_FALLOFF;
                                
-                               brush = &gset->brush[GP_EDITBRUSH_TYPE_RANDOMISE];
+                               brush = &gset->brush[GP_EDITBRUSH_TYPE_RANDOMIZE];
                                brush->size = 25;
                                brush->strength = 0.5f;
                                brush->flag = GP_EDITBRUSH_FLAG_USE_FALLOFF;
index eb0d392aa924325b819dfc2c40c9af6ed3999fc4..53325a45dcfd34e1da005f2b6250f32634e8df12 100644 (file)
@@ -126,7 +126,7 @@ void BLO_update_defaults_startup_blend(Main *bmain)
                                brush->strength = 0.5f; // XXX?
                                brush->flag = GP_EDITBRUSH_FLAG_USE_FALLOFF;
                                
-                               brush = &gset->brush[GP_EDITBRUSH_TYPE_RANDOMISE];
+                               brush = &gset->brush[GP_EDITBRUSH_TYPE_RANDOMIZE];
                                brush->size = 25;
                                brush->strength = 0.5f;
                                brush->flag = GP_EDITBRUSH_FLAG_USE_FALLOFF;
index 52340c57a2fbff7769413196a7ff9831ea757c59..0d1698e9ec7bedb350bc81645f7b37d0f932535c 100644 (file)
@@ -632,10 +632,10 @@ static bool gp_brush_twist_apply(tGP_BrushEditData *gso, bGPDstroke *gps, int i,
 
 
 /* ----------------------------------------------- */
-/* Randomise Brush */
+/* Randomize Brush */
 
 /* Apply some random jitter to the point */
-static bool gp_brush_randomise_apply(tGP_BrushEditData *gso, bGPDstroke *gps, int i,
+static bool gp_brush_randomize_apply(tGP_BrushEditData *gso, bGPDstroke *gps, int i,
                                      const int radius, const int co[2])
 {
        bGPDspoint *pt = gps->points + i;
@@ -1257,7 +1257,7 @@ static bool gpsculpt_brush_apply_standard(bContext *C, tGP_BrushEditData *gso)
                        break;
                }
                
-               case GP_EDITBRUSH_TYPE_RANDOMISE: /* Random jitter */
+               case GP_EDITBRUSH_TYPE_RANDOMIZE: /* Random jitter */
                {
                        /* compute the displacement vector for the cursor (in data space) */
                        gp_brush_grab_calc_dvec(gso);
@@ -1321,14 +1321,14 @@ static bool gpsculpt_brush_apply_standard(bContext *C, tGP_BrushEditData *gso)
                                break;
                        }
                        
-                       case GP_EDITBRUSH_TYPE_RANDOMISE: /* Apply jitter */
+                       case GP_EDITBRUSH_TYPE_RANDOMIZE: /* Apply jitter */
                        {
-                               changed |= gpsculpt_brush_do_stroke(gso, gps, gp_brush_randomise_apply);
+                               changed |= gpsculpt_brush_do_stroke(gso, gps, gp_brush_randomize_apply);
                                break;
                        }
                        
                        default:
-                               printf("ERROR: Unknown type of GPencil Sculpt brush - %d\n", gso->brush_type);
+                               printf("ERROR: Unknown type of GPencil Sculpt brush - %u\n", gso->brush_type);
                                break;
                }
        }
index 4f03a53e736bccaa12bb0d7f45d06db38ce6dfbd..f70ffaee7b2dd18e77e63e05be5cef0533e20348 100644 (file)
@@ -510,7 +510,7 @@ void GPENCIL_OT_unlock_all(wmOperatorType *ot)
        /* identifiers */
        ot->name = "Unlock All Layers";
        ot->idname = "GPENCIL_OT_unlock_all";
-       ot->description = "unlock all Grease Pencil layers so that they can be edited";
+       ot->description = "Unlock all Grease Pencil layers so that they can be edited";
        
        /* callbacks */
        ot->exec = gp_unlock_all_exec;
index 4052b97bc9cc0789746d5392e05dfb0bc04f2f70..42418f87bbd953a71ee05ff29c59882e130e5b6f 100644 (file)
@@ -1079,7 +1079,7 @@ typedef enum eGP_EditBrush_Types {
        GP_EDITBRUSH_TYPE_PUSH      = 3,
        GP_EDITBRUSH_TYPE_TWIST     = 4,
        GP_EDITBRUSH_TYPE_PINCH     = 5,
-       GP_EDITBRUSH_TYPE_RANDOMISE = 6,
+       GP_EDITBRUSH_TYPE_RANDOMIZE = 6,
        GP_EDITBRUSH_TYPE_SUBDIVIDE = 7,
        GP_EDITBRUSH_TYPE_SIMPLIFY  = 8,
        GP_EDITBRUSH_TYPE_CLONE     = 9,
index ed890631cad5842b3d87863cda6194bc5d0149e5..77bb4e98b8417c136f4d9cdf2728faaed1f6c4cd 100644 (file)
@@ -67,7 +67,7 @@ EnumPropertyItem rna_enum_gpencil_sculpt_brush_items[] = {
        {GP_EDITBRUSH_TYPE_PUSH, "PUSH", 0, "Push", "Move points out of the way, as if combing them"},
        {GP_EDITBRUSH_TYPE_TWIST, "TWIST", 0, "Twist", "Rotate points around the midpoint of the brush"},
        {GP_EDITBRUSH_TYPE_PINCH, "PINCH", 0, "Pinch", "Pull points towards the midpoint of the brush"},
-       {GP_EDITBRUSH_TYPE_RANDOMISE, "RANDOMISE", 0, "Randomise", "Introduce jitter/randomness into strokes"},
+       {GP_EDITBRUSH_TYPE_RANDOMIZE, "RANDOMIZE", 0, "Randomize", "Introduce jitter/randomness into strokes"},
        //{GP_EDITBRUSH_TYPE_SUBDIVIDE, "SUBDIVIDE", 0, "Subdivide", "Increase point density for higher resolution strokes when zoomed in"},
        //{GP_EDITBRUSH_TYPE_SIMPLIFY, "SIMPLIFY", 0, "Simplify", "Reduce density of stroke points"},
        {GP_EDITBRUSH_TYPE_CLONE, "CLONE", 0, "Clone", "Paste copies of the strokes stored on the clipboard"},