[Bf-blender-cvs] [977ef04746d] master: Cleanup: Fix capitalization in various places

Yevgeny Makarov noreply at git.blender.org
Sun Dec 13 22:36:59 CET 2020


Commit: 977ef04746d8a6a36a217330a02024cf768f636d
Author: Yevgeny Makarov
Date:   Sun Dec 13 13:12:56 2020 -0800
Branches: master
https://developer.blender.org/rB977ef04746d8a6a36a217330a02024cf768f636d

Cleanup: Fix capitalization in various places

Approximately 33 changes of capitalization to conform to MLA title style.

Differential Revision: https://developer.blender.org/D9796

Reviewed by Julian Eisel

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

M	release/scripts/startup/bl_operators/object.py
M	release/scripts/startup/bl_operators/object_align.py
M	release/scripts/startup/bl_operators/object_quick_effects.py
M	source/blender/editors/animation/anim_ops.c
M	source/blender/editors/curve/editcurve.c
M	source/blender/editors/mesh/editmesh_bevel.c
M	source/blender/editors/mesh/editmesh_knife_project.c
M	source/blender/editors/object/object_gpencil_modifier.c
M	source/blender/editors/object/object_relations.c
M	source/blender/editors/sculpt_paint/paint_image_proj.c
M	source/blender/editors/sculpt_paint/sculpt.c
M	source/blender/editors/sculpt_paint/sculpt_detail.c
M	source/blender/editors/sculpt_paint/sculpt_filter_color.c
M	source/blender/editors/sculpt_paint/sculpt_filter_mask.c
M	source/blender/editors/sculpt_paint/sculpt_filter_mesh.c
M	source/blender/editors/space_action/action_select.c
M	source/blender/editors/space_graph/graph_select.c
M	source/blender/editors/space_info/info_report.c
M	source/blender/editors/space_node/node_view.c
M	source/blender/editors/space_script/script_edit.c
M	source/blender/editors/uvedit/uvedit_smart_stitch.c
M	source/blender/makesrna/intern/rna_camera.c
M	source/blender/makesrna/intern/rna_light.c
M	source/blender/makesrna/intern/rna_material.c
M	source/blender/makesrna/intern/rna_rna.c
M	source/blender/makesrna/intern/rna_screen.c

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

diff --git a/release/scripts/startup/bl_operators/object.py b/release/scripts/startup/bl_operators/object.py
index 0f5785c7498..92eb47cea0f 100644
--- a/release/scripts/startup/bl_operators/object.py
+++ b/release/scripts/startup/bl_operators/object.py
@@ -888,7 +888,7 @@ class LoadImageAsEmpty:
     filter_folder: BoolProperty(default=True, options={'HIDDEN', 'SKIP_SAVE'})
 
     view_align: BoolProperty(
-        name="Align to view",
+        name="Align to View",
         default=True,
     )
 
diff --git a/release/scripts/startup/bl_operators/object_align.py b/release/scripts/startup/bl_operators/object_align.py
index ec9b098be2c..cc6724a620e 100644
--- a/release/scripts/startup/bl_operators/object_align.py
+++ b/release/scripts/startup/bl_operators/object_align.py
@@ -358,7 +358,7 @@ from bpy.props import (
 
 
 class AlignObjects(Operator):
-    """Align Objects"""
+    """Align objects"""
     bl_idname = "object.align"
     bl_label = "Align Objects"
     bl_options = {'REGISTER', 'UNDO'}
@@ -386,7 +386,7 @@ class AlignObjects(Operator):
         name="Relative To",
         description="Reference location to align to",
         items=(
-            ('OPT_1', "Scene Origin", "Use the Scene Origin as the position for the selected objects to align to"),
+            ('OPT_1', "Scene Origin", "Use the scene origin as the position for the selected objects to align to"),
             ('OPT_2', "3D Cursor", "Use the 3D cursor as the position for the selected objects to align to"),
             ('OPT_3', "Selection", "Use the selected objects as the position for the selected objects to align to"),
             ('OPT_4', "Active", "Use the active object as the position for the selected objects to align to"),
diff --git a/release/scripts/startup/bl_operators/object_quick_effects.py b/release/scripts/startup/bl_operators/object_quick_effects.py
index 688f9d65814..8c275da28ac 100644
--- a/release/scripts/startup/bl_operators/object_quick_effects.py
+++ b/release/scripts/startup/bl_operators/object_quick_effects.py
@@ -134,7 +134,7 @@ class QuickExplode(ObjectModeOperator, Operator):
         default='EXPLODE',
     )
     amount: IntProperty(
-        name="Amount of pieces",
+        name="Number of Pieces",
         min=2, max=10000,
         soft_min=2, soft_max=10000,
         default=100,
diff --git a/source/blender/editors/animation/anim_ops.c b/source/blender/editors/animation/anim_ops.c
index 9e622aea6ab..0db3e984b60 100644
--- a/source/blender/editors/animation/anim_ops.c
+++ b/source/blender/editors/animation/anim_ops.c
@@ -503,7 +503,7 @@ static void ANIM_OT_previewrange_clear(wmOperatorType *ot)
   /* identifiers */
   ot->name = "Clear Preview Range";
   ot->idname = "ANIM_OT_previewrange_clear";
-  ot->description = "Clear Preview Range";
+  ot->description = "Clear preview range";
 
   /* api callbacks */
   ot->exec = previewrange_clear_exec;
diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c
index db472c9ffa7..2b627971286 100644
--- a/source/blender/editors/curve/editcurve.c
+++ b/source/blender/editors/curve/editcurve.c
@@ -3838,7 +3838,7 @@ void CURVE_OT_subdivide(wmOperatorType *ot)
   /* flags */
   ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
 
-  prop = RNA_def_int(ot->srna, "number_cuts", 1, 1, 1000, "Number of cuts", "", 1, 10);
+  prop = RNA_def_int(ot->srna, "number_cuts", 1, 1, 1000, "Number of Cuts", "", 1, 10);
   /* Avoid re-using last var because it can cause _very_ high poly meshes
    * and annoy users (or worse crash). */
   RNA_def_property_flag(prop, PROP_SKIP_SAVE);
diff --git a/source/blender/editors/mesh/editmesh_bevel.c b/source/blender/editors/mesh/editmesh_bevel.c
index b8badd207fe..e788b28d3b4 100644
--- a/source/blender/editors/mesh/editmesh_bevel.c
+++ b/source/blender/editors/mesh/editmesh_bevel.c
@@ -1129,7 +1129,7 @@ void MESH_OT_bevel(wmOperatorType *ot)
                prop_affect_items,
                BEVEL_AFFECT_EDGES,
                "Affect",
-               "Affect Edges or Vertices");
+               "Affect edges or vertices");
 
   RNA_def_boolean(ot->srna,
                   "clamp_overlap",
diff --git a/source/blender/editors/mesh/editmesh_knife_project.c b/source/blender/editors/mesh/editmesh_knife_project.c
index ef78d31a6bb..aa144dd3f3c 100644
--- a/source/blender/editors/mesh/editmesh_knife_project.c
+++ b/source/blender/editors/mesh/editmesh_knife_project.c
@@ -177,6 +177,6 @@ void MESH_OT_knife_project(wmOperatorType *ot)
   RNA_def_boolean(ot->srna,
                   "cut_through",
                   false,
-                  "Cut through",
+                  "Cut Through",
                   "Cut through all faces, not just visible ones");
 }
diff --git a/source/blender/editors/object/object_gpencil_modifier.c b/source/blender/editors/object/object_gpencil_modifier.c
index af95f5581bd..9ea67df6daf 100644
--- a/source/blender/editors/object/object_gpencil_modifier.c
+++ b/source/blender/editors/object/object_gpencil_modifier.c
@@ -789,7 +789,7 @@ void OBJECT_OT_gpencil_modifier_apply(wmOperatorType *ot)
                "apply_as",
                gpencil_modifier_apply_as_items,
                MODIFIER_APPLY_DATA,
-               "Apply as",
+               "Apply As",
                "How to apply the modifier to the geometry");
   gpencil_edit_modifier_properties(ot);
   gpencil_edit_modifier_report_property(ot);
diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c
index 3ad500d3d0d..8ec9f7af184 100644
--- a/source/blender/editors/object/object_relations.c
+++ b/source/blender/editors/object/object_relations.c
@@ -2556,7 +2556,7 @@ static int convert_proxy_to_override_exec(bContext *C, wmOperator *UNUSED(op))
 void OBJECT_OT_convert_proxy_to_override(wmOperatorType *ot)
 {
   /* identifiers */
-  ot->name = "Convert Proxy To Override";
+  ot->name = "Convert Proxy to Override";
   ot->description = "Convert a proxy to a local library override";
   ot->idname = "OBJECT_OT_convert_proxy_to_override";
 
diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c
index 98f4b4013cb..cca4ffd4d78 100644
--- a/source/blender/editors/sculpt_paint/paint_image_proj.c
+++ b/source/blender/editors/sculpt_paint/paint_image_proj.c
@@ -6781,7 +6781,7 @@ static bool add_simple_uvs_poll(bContext *C)
 void PAINT_OT_add_simple_uvs(wmOperatorType *ot)
 {
   /* identifiers */
-  ot->name = "Add simple UVs";
+  ot->name = "Add Simple UVs";
   ot->description = "Add cube map uvs on mesh";
   ot->idname = "PAINT_OT_add_simple_uvs";
 
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index fd7ec1da497..94f05560f79 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -8685,7 +8685,7 @@ static int sculpt_sample_color_invoke(bContext *C,
 static void SCULPT_OT_sample_color(wmOperatorType *ot)
 {
   /* identifiers */
-  ot->name = "Sample color";
+  ot->name = "Sample Color";
   ot->idname = "SCULPT_OT_sample_color";
   ot->description = "Sample the vertex color of the active vertex";
 
diff --git a/source/blender/editors/sculpt_paint/sculpt_detail.c b/source/blender/editors/sculpt_paint/sculpt_detail.c
index ddf5b39f080..aa1d407dc24 100644
--- a/source/blender/editors/sculpt_paint/sculpt_detail.c
+++ b/source/blender/editors/sculpt_paint/sculpt_detail.c
@@ -363,7 +363,7 @@ void SCULPT_OT_sample_detail_size(wmOperatorType *ot)
                     0,
                     SHRT_MAX,
                     "Location",
-                    "Screen Coordinates of sampling",
+                    "Screen coordinates of sampling",
                     0,
                     SHRT_MAX);
   RNA_def_enum(ot->srna,
diff --git a/source/blender/editors/sculpt_paint/sculpt_filter_color.c b/source/blender/editors/sculpt_paint/sculpt_filter_color.c
index f3c07a86201..76a6b05cdff 100644
--- a/source/blender/editors/sculpt_paint/sculpt_filter_color.c
+++ b/source/blender/editors/sculpt_paint/sculpt_filter_color.c
@@ -328,9 +328,9 @@ void SCULPT_OT_color_filter(struct wmOperatorType *ot)
   ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
 
   /* rna */
-  RNA_def_enum(ot->srna, "type", prop_color_filter_types, COLOR_FILTER_HUE, "Filter type", "");
+  RNA_def_enum(ot->srna, "type", prop_color_filter_types, COLOR_FILTER_HUE, "Filter Type", "");
   RNA_def_float(
-      ot->srna, "strength", 1.0f, -10.0f, 10.0f, "Strength", "Filter Strength", -10.0f, 10.0f);
+      ot->srna, "strength", 1.0f, -10.0f, 10.0f, "Strength", "Filter strength", -10.0f, 10.0f);
 
   PropertyRNA *prop = RNA_def_float_color(
       ot->srna, "fill_color", 3, NULL, 0.0f, FLT_MAX, "Fill Color", "", 0.0f, 1.0f);
diff --git a/source/blender/editors/sculpt_paint/sculpt_filter_mask.c b/source/blender/editors/sculpt_paint/sculpt_filter_mask.c
index ddad6bef7fd..0297ed73dd4 100644
--- a/source/blender/editors/sculpt_paint/sculpt_filter_mask.c
+++ b/source/blender/editors/sculpt_paint/sculpt_filter_mask.c
@@ -80,12 +80,12 @@ static EnumPropertyItem prop_mask_filter_types[] = {
     {MASK_FILTER_CONTRAST_INCREASE,
      "CONTRAST_INCREASE",
      0,
-     "Increase contrast",
+     "Increase Contrast",
      "Increase the contrast of the paint mask"},
     {MASK_FILTER_CONTRAST_DECREASE,
      "CONTRAST_DECREASE",
      0,
-     "Decrease contrast",
+     "Decrease Contrast",
      "Decrease the contrast of the paint mask"},
     {0, NULL, 0, NULL, NULL},
 };
diff --git a/source/blender/editors/sculpt_paint/sculpt_filter_mesh.c b/source/blender/editors/sculpt_paint/sculpt_filter_mesh.c
index 02d4be20e1b..e11894a8c01 100644
--- a/source/blender/editors/sculpt_paint/sculpt_filter_mesh.c
+++ b/source/blender/editors/sculpt_paint/sculpt_filter_mesh.c
@@ -771,15 +771,15 @@ void SCULPT_OT_mesh_filter(struct wmOperatorType *ot)
                "type",
                prop_mesh_filter_types,
                MESH_FILTER_INFLATE,
-               "Filter type",
+               "Filter Type",
                "Operation that is going to be applied to the mesh");
   RNA_def_float(
-      ot->srna, "strength

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list