[Bf-blender-cvs] [c0bbb93b887] master: Cleanup: spelling, remove outdated/invalid comments

Campbell Barton noreply at git.blender.org
Fri Jan 22 06:55:08 CET 2021


Commit: c0bbb93b887411545b58cfa2e1c70459a2c40f73
Author: Campbell Barton
Date:   Fri Jan 22 16:49:32 2021 +1100
Branches: master
https://developer.blender.org/rBc0bbb93b887411545b58cfa2e1c70459a2c40f73

Cleanup: spelling, remove outdated/invalid comments

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

M	source/blender/blenkernel/intern/object.c
M	source/blender/depsgraph/intern/builder/deg_builder_relations.cc
M	source/blender/editors/include/ED_object.h
M	source/blender/editors/object/object_add.c
M	source/blender/io/common/IO_dupli_persistent_id.hh

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

diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c
index d033acd10d9..750a4cbd358 100644
--- a/source/blender/blenkernel/intern/object.c
+++ b/source/blender/blenkernel/intern/object.c
@@ -3527,9 +3527,6 @@ static void solve_parenting(
   }
 }
 
-/**
- * \note scene is the active scene while actual_scene is the scene the object resides in.
- */
 static void object_where_is_calc_ex(Depsgraph *depsgraph,
                                     Scene *scene,
                                     Object *ob,
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
index a6eb40cc6b8..4fe9484eb17 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
@@ -1226,7 +1226,7 @@ void DepsgraphRelationBuilder::build_constraints(ID *id,
           // TODO: loc vs rot vs scale?
           if (&ct->tar->id == id) {
             /* Constraint targeting own object:
-             * - This case is fine IFF we're dealing with a bone
+             * - This case is fine IF we're dealing with a bone
              *   constraint pointing to its own armature. In that
              *   case, it's just transform -> bone.
              * - If however it is a real self targeting case, just
@@ -1797,7 +1797,7 @@ void DepsgraphRelationBuilder::build_rigidbody(Scene *scene)
                      RELATION_FLAG_GODMODE);
       }
 
-      /* Final transform is whetever solver gave to us. */
+      /* Final transform is wherever solver gave to us. */
       if (object->rigidbody_object->type == RBO_TYPE_ACTIVE) {
         /* We do not have to update the objects final transform after the simulation if it is
          * passive or controlled by the animation system in blender.
diff --git a/source/blender/editors/include/ED_object.h b/source/blender/editors/include/ED_object.h
index 7ba2992b8fe..247163281e8 100644
--- a/source/blender/editors/include/ED_object.h
+++ b/source/blender/editors/include/ED_object.h
@@ -159,7 +159,7 @@ extern struct EnumPropertyItem prop_clear_parent_types[];
 extern struct EnumPropertyItem prop_make_parent_types[];
 #endif
 
-/* Set the object's parent, return true iff successful. */
+/* Set the object's parent, return true if successful. */
 bool ED_object_parent_set(struct ReportList *reports,
                           const struct bContext *C,
                           struct Scene *scene,
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c
index 4e8936357eb..9ab5eafa84d 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -607,7 +607,6 @@ Object *ED_object_add_type_with_obdata(bContext *C,
   Scene *scene = CTX_data_scene(C);
   ViewLayer *view_layer = CTX_data_view_layer(C);
 
-  /* For as long scene has editmode... */
   {
     Object *obedit = OBEDIT_FROM_VIEW_LAYER(view_layer);
     if (obedit != NULL) {
diff --git a/source/blender/io/common/IO_dupli_persistent_id.hh b/source/blender/io/common/IO_dupli_persistent_id.hh
index 6fabafd9d51..afc539636ac 100644
--- a/source/blender/io/common/IO_dupli_persistent_id.hh
+++ b/source/blender/io/common/IO_dupli_persistent_id.hh
@@ -41,7 +41,7 @@ class PersistentID {
   PersistentID();
   explicit PersistentID(const DupliObject *dupli_ob);
 
-  /* Return true iff the persistent IDs are the same, ignoring the first digit. */
+  /* Return true if the persistent IDs are the same, ignoring the first digit. */
   bool is_from_same_instancer_as(const PersistentID &other) const;
 
   /* Construct the persistent ID of this instance's instancer. */



More information about the Bf-blender-cvs mailing list