diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-01-09 03:17:18 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-01-09 03:17:18 +0400 |
commit | aad731d51cdb77f81287300e7a81a00ffd05a38e (patch) | |
tree | 24783340a3fb1065ce986caa0312beeba48da0c1 /source/blender/blenkernel/intern/object.c | |
parent | 0d57724c644c6a45cf14778c79b5138438d01cd6 (diff) |
Code cleanup: remove BKE_object_where_is_calc_simul function.
It doesn't make any sense anymore with the current depsgraph and probably was
not useful for a long time, just a leftover from the pre 2.04 game engine.
Diffstat (limited to 'source/blender/blenkernel/intern/object.c')
-rw-r--r-- | source/blender/blenkernel/intern/object.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c index c069abfaf35..c0520e5d1a9 100644 --- a/source/blender/blenkernel/intern/object.c +++ b/source/blender/blenkernel/intern/object.c @@ -2414,47 +2414,6 @@ void BKE_object_where_is_calc(Scene *scene, Object *ob) BKE_object_where_is_calc_time_ex(scene, ob, BKE_scene_frame_get(scene), NULL, NULL); } -/* was written for the old game engine (until 2.04) */ -/* It seems that this function is only called - * for a lamp that is the child of another object */ -void BKE_object_where_is_calc_simul(Scene *scene, Object *ob) -{ - Object *par; - float *fp1, *fp2; - float slowmat[4][4]; - float fac1, fac2; - int a; - - /* NO TIMEOFFS */ - if (ob->parent) { - par = ob->parent; - - solve_parenting(scene, ob, par, ob->obmat, slowmat, NULL, true); - - if (ob->partype & PARSLOW) { - fac1 = (float)(1.0 / (1.0 + fabs(ob->sf))); - fac2 = 1.0f - fac1; - fp1 = ob->obmat[0]; - fp2 = slowmat[0]; - for (a = 0; a < 16; a++, fp1++, fp2++) { - fp1[0] = fac1 * fp1[0] + fac2 * fp2[0]; - } - } - } - else { - BKE_object_to_mat4(ob, ob->obmat); - } - - /* solve constraints */ - if (ob->constraints.first) { - bConstraintOb *cob; - - cob = BKE_constraints_make_evalob(scene, ob, NULL, CONSTRAINT_OBTYPE_OBJECT); - BKE_solve_constraints(&ob->constraints, cob, BKE_scene_frame_get(scene)); - BKE_constraints_clear_evalob(cob); - } -} - /* for calculation of the inverse parent transform, only used for editor */ void BKE_object_workob_calc_parent(Scene *scene, Object *ob, Object *workob) { |