[Bf-blender-cvs] [0971749] master: Cleanup: spelling, indentation

Campbell Barton noreply at git.blender.org
Wed Jun 29 12:39:03 CEST 2016


Commit: 0971749f4cdc6c5263b91f652c1d78c97e30b973
Author: Campbell Barton
Date:   Wed Jun 29 20:37:54 2016 +1000
Branches: master
https://developer.blender.org/rB0971749f4cdc6c5263b91f652c1d78c97e30b973

Cleanup: spelling, indentation

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

M	source/blender/blenkernel/intern/library_remap.c
M	source/blender/blenlib/intern/task.c
M	source/blender/blenloader/intern/readfile.c
M	source/blender/blenloader/intern/writefile.c
M	source/blender/editors/animation/drivers.c
M	source/blender/editors/space_action/action_select.c
M	source/blender/editors/space_outliner/outliner_edit.c
M	source/blender/editors/space_outliner/outliner_tools.c
M	source/blender/editors/transform/transform_snap_object.c
M	source/blender/makesrna/intern/rna_access.c
M	source/blender/windowmanager/intern/wm_files_link.c

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

diff --git a/source/blender/blenkernel/intern/library_remap.c b/source/blender/blenkernel/intern/library_remap.c
index f08315b..10dd123 100644
--- a/source/blender/blenkernel/intern/library_remap.c
+++ b/source/blender/blenkernel/intern/library_remap.c
@@ -393,7 +393,7 @@ void BKE_libblock_remap_locked(
 			if (old_ob->flag & OB_FROMGROUP) {
 				/* Note that for Scene's BaseObject->flag, either we:
 				 *     - unlinked old_ob (i.e. new_ob is NULL), in which case scenes' bases have been removed already.
-				 *     - remaped old_ob by new_ob, in which case scenes' bases are still valid as is.
+				 *     - remapped old_ob by new_ob, in which case scenes' bases are still valid as is.
 				 * So in any case, no need to update them here. */
 				if (BKE_group_object_find(NULL, old_ob) == NULL) {
 					old_ob->flag &= ~OB_FROMGROUP;
diff --git a/source/blender/blenlib/intern/task.c b/source/blender/blenlib/intern/task.c
index 0b299af..bd7b7f9 100644
--- a/source/blender/blenlib/intern/task.c
+++ b/source/blender/blenlib/intern/task.c
@@ -992,7 +992,8 @@ void BLI_task_parallel_range(
  *                       (similar to OpenMP's firstprivate).
  * \param userdata_chunk_size Memory size of \a userdata_chunk.
  * \param func_ex Callback function (advanced version).
- * \param func_finalize Callback function, called after all workers have finisehd, useful to finalize accumulative tasks.
+ * \param func_finalize Callback function, called after all workers have finished,
+ * useful to finalize accumulative tasks.
  * \param use_threading If \a true, actually split-execute loop in threads, else just do a sequential forloop
  *                      (allows caller to use any kind of test to switch on parallelization or not).
  * \param use_dynamic_scheduling If \a true, the whole range is divided in a lot of small chunks (of size 32 currently),
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 325f846..b09ea45 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -6450,7 +6450,7 @@ static void *restore_pointer_by_name_main(Main *mainp, ID *id, ePointerUserMode
  * - USER_IGNORE: no usercount change
  * - USER_REAL: ensure a real user (even if a fake one is set)
  * \param id_map: lookup table, use when performing many lookups.
- * this could be made an optional agument (falling back to a full lookup),
+ * this could be made an optional argument (falling back to a full lookup),
  * however at the moment it's always available.
  */
 static void *restore_pointer_by_name(struct IDNameLib_Map *id_map, ID *id, ePointerUserMode user)
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c
index 2c8bb92..19fb80f 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -514,7 +514,7 @@ static void writestruct_at_address_id(
 
 static void writestruct_nr(
         WriteData *wd, int filecode, const int struct_nr, int nr,
-	const void *adr)
+        const void *adr)
 {
 	writestruct_at_address_nr(wd, filecode, struct_nr, nr, adr, adr);
 }
diff --git a/source/blender/editors/animation/drivers.c b/source/blender/editors/animation/drivers.c
index c24ca1e..21c25f8 100644
--- a/source/blender/editors/animation/drivers.c
+++ b/source/blender/editors/animation/drivers.c
@@ -209,7 +209,7 @@ static int add_driver_with_target(
 		 *     (The only issue is with quat rotations vs euler channels...)
 		 *   - To avoid problems with transform properties depending on the final transform that they
 		 *     control (thus creating pseudo-cycles - see T48734), we don't use transform channels
-		 *     when both the source and destinaions are in same places.
+		 *     when both the source and destinations are in same places.
 		 */
 		dvar = driver_add_new_variable(driver);
 		
diff --git a/source/blender/editors/space_action/action_select.c b/source/blender/editors/space_action/action_select.c
index 0b6d3cb..7900217 100644
--- a/source/blender/editors/space_action/action_select.c
+++ b/source/blender/editors/space_action/action_select.c
@@ -379,7 +379,7 @@ void ACTION_OT_select_border(wmOperatorType *ot)
 /* ******************** Region Select Operators ***************************** */
 /* "Region Select" operators include the Lasso and Circle Select operators.
  * These two ended up being lumped together, as it was easier in the 
- * original Graph Editor implmentation of these to do it this way.
+ * original Graph Editor implementation of these to do it this way.
  */
 
 static void region_select_action_keys(bAnimContext *ac, const rctf *rectf_view, short mode, short selectmode, void *data)
diff --git a/source/blender/editors/space_outliner/outliner_edit.c b/source/blender/editors/space_outliner/outliner_edit.c
index 57d9ff7..2618a14 100644
--- a/source/blender/editors/space_outliner/outliner_edit.c
+++ b/source/blender/editors/space_outliner/outliner_edit.c
@@ -416,7 +416,7 @@ static int outliner_id_remap_exec(bContext *C, wmOperator *op)
 	}
 
 	BKE_libblock_remap(bmain, old_id, new_id,
-					   ID_REMAP_SKIP_INDIRECT_USAGE | ID_REMAP_SKIP_NEVER_NULL_USAGE);
+	                   ID_REMAP_SKIP_INDIRECT_USAGE | ID_REMAP_SKIP_NEVER_NULL_USAGE);
 
 	BKE_main_lib_objects_recalc_all(bmain);
 
@@ -541,7 +541,7 @@ void id_remap_cb(
 /* Library relocate/reload --------------------------------------------------- */
 
 static int lib_relocate(
-		bContext *C, TreeElement *te, TreeStoreElem *tselem, wmOperatorType *ot, const bool reload)
+        bContext *C, TreeElement *te, TreeStoreElem *tselem, wmOperatorType *ot, const bool reload)
 {
 	PointerRNA op_props;
 	int ret = 0;
@@ -579,7 +579,7 @@ static int lib_relocate(
 }
 
 static int outliner_lib_relocate_invoke_do(
-		bContext *C, ReportList *reports, TreeElement *te, const float mval[2], const bool reload)
+        bContext *C, ReportList *reports, TreeElement *te, const float mval[2], const bool reload)
 {
 	if (mval[1] > te->ys && mval[1] < te->ys + UI_UNIT_Y) {
 		TreeStoreElem *tselem = TREESTORE(te);
@@ -642,7 +642,7 @@ void OUTLINER_OT_lib_relocate(wmOperatorType *ot)
 }
 
 /* XXX This does not work with several items
- *     (it is only called once in the end, due to the 'deffered' filebrowser invocation through event system...). */
+ *     (it is only called once in the end, due to the 'deferred' filebrowser invocation through event system...). */
 void lib_relocate_cb(
         bContext *C, Scene *UNUSED(scene), TreeElement *te,
         TreeStoreElem *UNUSED(tsep), TreeStoreElem *tselem, void *UNUSED(user_data))
diff --git a/source/blender/editors/space_outliner/outliner_tools.c b/source/blender/editors/space_outliner/outliner_tools.c
index 265df4a..e80ba5d 100644
--- a/source/blender/editors/space_outliner/outliner_tools.c
+++ b/source/blender/editors/space_outliner/outliner_tools.c
@@ -864,8 +864,8 @@ static EnumPropertyItem prop_object_op_types[] = {
 	{OL_OP_SELECT_HIERARCHY, "SELECT_HIERARCHY", 0, "Select Hierarchy", ""},
 	{OL_OP_DELETE, "DELETE", 0, "Delete", ""},
 	{OL_OP_DELETE_HIERARCHY, "DELETE_HIERARCHY", 0, "Delete Hierarchy", ""},
-    {OL_OP_REMAP, "REMAP",   0, "Remap Users",
-     "Make all users of selected datablocks to use instead a new chosen one"},
+	{OL_OP_REMAP, "REMAP",   0, "Remap Users",
+	 "Make all users of selected datablocks to use instead a new chosen one"},
 	{OL_OP_TOGVIS, "TOGVIS", 0, "Toggle Visible", ""},
 	{OL_OP_TOGSEL, "TOGSEL", 0, "Toggle Selectable", ""},
 	{OL_OP_TOGREN, "TOGREN", 0, "Toggle Renderable", ""},
@@ -1009,9 +1009,9 @@ static EnumPropertyItem prop_group_op_types[] = {
 	{OL_GROUPOP_UNLINK, "UNLINK",     0, "Unlink Group", ""},
 	{OL_GROUPOP_LOCAL, "LOCAL",       0, "Make Local Group", ""},
 	{OL_GROUPOP_LINK, "LINK",         0, "Link Group Objects to Scene", ""},
-    {OL_GROUPOP_DELETE, "DELETE",     0, "Delete Group", "WARNING: no undo"},
-    {OL_GROUPOP_REMAP, "REMAP",       0, "Remap Users",
-     "Make all users of selected datablocks to use instead current (clicked) one"},
+	{OL_GROUPOP_DELETE, "DELETE",     0, "Delete Group", "WARNING: no undo"},
+	{OL_GROUPOP_REMAP, "REMAP",       0, "Remap Users",
+	 "Make all users of selected datablocks to use instead current (clicked) one"},
 	{OL_GROUPOP_INSTANCE, "INSTANCE", 0, "Instance Groups in Scene", ""},
 	{OL_GROUPOP_TOGVIS, "TOGVIS",     0, "Toggle Visible Group", ""},
 	{OL_GROUPOP_TOGSEL, "TOGSEL",     0, "Toggle Selectable", ""},
@@ -1116,9 +1116,9 @@ static EnumPropertyItem prop_id_op_types[] = {
 	{OUTLINER_IDOP_UNLINK, "UNLINK", 0, "Unlink", ""},
 	{OUTLINER_IDOP_LOCAL, "LOCAL", 0, "Make Local", ""},
 	{OUTLINER_IDOP_SINGLE, "SINGLE", 0, "Make Single User", ""},
-    {OUTLINER_IDOP_DELETE, "DELETE", 0, "Delete", "WARNING: no undo"},
-    {OUTLINER_IDOP_REMAP, "REMAP", 0, "Remap Users",
-     "Make all users of selected datablocks to use instead current (clicked) one"},
+	{OUTLINER_IDOP_DELETE, "DELETE", 0, "Delete", "WARNING: no undo"},
+	{OUTLINER_IDOP_REMAP, "REMAP", 0, "Remap Users",
+	 "Make all users of selected datablocks to use instead current (clicked) one"},
 	{OUTLINER_IDOP_FAKE_ADD, "ADD_FAKE", 0, "Add Fake User",
 	 "Ensure datablock gets saved even if it isn't in use (e.g. for motion and material libraries)"},
 	{OUTLINER_IDOP_FAKE_CLEAR, "CLEAR_FAKE", 0, "Clear Fake User", ""},
@@ -1299,9 +1299,9 @@ typedef enum eOutlinerLibOpTypes {
 
 static EnumPropertyItem outliner_lib_op_type_items[] = {
 	{OL_LIB_RENAME, "RENAME", 0, "Rename", ""},
-    {OL_LIB_DELETE, "DELETE", 0, "Delete", "Delete this library and all its item from Blender - WARNING: no undo"},
-    {OL_LIB_RELOCATE, "RELOCATE", 0, "Relocate", "Select a new path for this library, and reload all its data"},
-    {OL_LIB_RELOAD, "RELOAD", 0, "Reload", "Reload all data from this library"},
+	{OL_LIB_DELETE, "DELETE", 0, "Delete", "Delete this library and all its item from Blender - WARNING: no undo"},
+	{OL_LIB_RELOCATE, "RELOCATE", 0, "Relocate", "Select a new path for this library, and reload all its data"},
+	{OL_LIB_RELOAD, "RELOAD", 0, "Reload", "Reload all data from this library"},
 	{0, NULL, 0, NULL, NULL}
 };
 
diff -

@@ Diff output truncated at 10240 characters. @@




More information about the Bf-blender-cvs mailing list