diff options
author | Jacques Lucke <mail@jlucke.com> | 2018-10-17 13:43:41 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2018-10-17 13:43:41 +0300 |
commit | 21744217cea9bb8f767f47cb6c41446563e645ac (patch) | |
tree | 4cd38ca5ae9530eb99fcf91fa28530b42d0fce68 /source/blender/blenkernel/intern/constraint.c | |
parent | c6eb5651ba26db3fa26179f2124c58f8c94b5ca3 (diff) |
Cleanup: remove some #if 0 blocks
Reviewers: brecht, campbellbarton
Differential Revision: https://developer.blender.org/D3802
Diffstat (limited to 'source/blender/blenkernel/intern/constraint.c')
-rw-r--r-- | source/blender/blenkernel/intern/constraint.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c index 095aabb793c..8e85cc39321 100644 --- a/source/blender/blenkernel/intern/constraint.c +++ b/source/blender/blenkernel/intern/constraint.c @@ -1326,21 +1326,7 @@ static void followpath_get_tarmat(struct Depsgraph *UNUSED(depsgraph), unit_m4(totmat); if (data->followflag & FOLLOWPATH_FOLLOW) { -#if 0 - float x1, q[4]; - vec_to_quat(quat, dir, (short)data->trackflag, (short)data->upflag); - - normalize_v3(dir); - q[0] = cosf(0.5 * vec[3]); - x1 = sinf(0.5 * vec[3]); - q[1] = -x1 * dir[0]; - q[2] = -x1 * dir[1]; - q[3] = -x1 * dir[2]; - mul_qt_qtqt(quat, q, quat); -#else quat_apply_track(quat, data->trackflag, data->upflag); -#endif - quat_to_mat4(totmat, quat); } @@ -2090,15 +2076,6 @@ static void pycon_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *targe /* only evaluate in python if we're allowed to do so */ if ((G.f & G_SCRIPT_AUTOEXEC) == 0) return; -/* currently removed, until I this can be re-implemented for multiple targets */ -#if 0 - /* Firstly, run the 'driver' function which has direct access to the objects involved - * Technically, this is potentially dangerous as users may abuse this and cause dependency-problems, - * but it also allows certain 'clever' rigging hacks to work. - */ - BPY_pyconstraint_driver(data, cob, targets); -#endif - /* Now, run the actual 'constraint' function, which should only access the matrices */ BPY_pyconstraint_exec(data, cob, targets); #endif /* WITH_PYTHON */ |