diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-11-17 14:20:04 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-11-17 14:23:25 +0300 |
commit | 93cd8e2494a03ca592337ddfeef3c61c2991ddf9 (patch) | |
tree | 1dcf984d1347a7250b36650d0f8905286dc50ed4 /source/blender/blenkernel/intern/constraint.c | |
parent | dab0bc7bf8f3f2ccf920da5497472566453ab2e7 (diff) |
Cleanup: style
Diffstat (limited to 'source/blender/blenkernel/intern/constraint.c')
-rw-r--r-- | source/blender/blenkernel/intern/constraint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c index 96480862b93..96df4f402c5 100644 --- a/source/blender/blenkernel/intern/constraint.c +++ b/source/blender/blenkernel/intern/constraint.c @@ -5107,7 +5107,7 @@ bConstraint *BKE_constraint_find_from_target(Object *ob, bConstraintTarget *tgt, /* Finds the original copy of the constraint based on a COW copy. */ static bConstraint *constraint_find_original(Object *ob, bPoseChannel *pchan, bConstraint *con, Object **r_orig_ob) { - Object *orig_ob = (Object*)DEG_get_original_id((ID*)ob); + Object *orig_ob = (Object *)DEG_get_original_id(&ob->id); if (ELEM(orig_ob, NULL, ob)) { return NULL; @@ -5139,7 +5139,7 @@ static bConstraint *constraint_find_original(Object *ob, bPoseChannel *pchan, bC int index = BLI_findindex(constraints, con); if (index >= 0) { - bConstraint *orig_con = (bConstraint*)BLI_findlink(orig_constraints, index); + bConstraint *orig_con = BLI_findlink(orig_constraints, index); /* Verify it has correct type and name. */ if (orig_con && orig_con->type == con->type && STREQ(orig_con->name, con->name)) { @@ -5251,7 +5251,7 @@ void BKE_constraint_target_matrix_get(struct Depsgraph *depsgraph, Scene *scene, cti->get_constraint_targets(con, &targets); /* only calculate the target matrix on the first target */ - ct = (bConstraintTarget *)BLI_findlink(&targets, index); + ct = BLI_findlink(&targets, index); if (ct) { if (cti->get_target_matrix) |