Cleanup: spelling, remove outdated/invalid comments

This commit is contained in:
Campbell Barton 2021-01-22 16:49:32 +11:00
parent 421c5127f4
commit c0bbb93b88
5 changed files with 4 additions and 8 deletions

View File

@ -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,

View File

@ -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.

View File

@ -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,

View File

@ -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) {

View File

@ -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. */