[Bf-committers] Code?
Austin Benesh
bfdeveloper at gmail.com
Fri Mar 18 03:52:22 CET 2005
Correct me if I'm wrong, but I am noticing some screwed up things in the
code. Example:
Source/src/transform_constraints.c
void axisProjection(TransInfo *t, float axis[3], float in[3], float out[3])
{
=======
static void axisProjection(TransInfo *t, float axis[3], float in[3], float
out[3]) {
>>>>>>> 1.15
float norm[3], n[3], vec[3], factor;
getViewVector(t, in, norm);
Normalise(axis);
VECCOPY(n, axis);
Mat4MulVecfl(G.vd->viewmat, n);
n[2] = G.vd->viewmat[3][2];
Mat4MulVecfl(G.vd->viewinv, n);
if (Inpf(axis, norm) != 1.0f) {
Projf(vec, in, n);
factor = Normalise(vec);
factor /= Inpf(axis, vec);
VecMulf(axis, factor);
VECCOPY(out, axis);
}
else {
out[0] = out[1] = out[2] = 0.0f;
}
}
Who the heck is doing this?
-- Austin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.blender.org/pipermail/bf-committers/attachments/20050317/b604dca4/attachment-0001.html
More information about the Bf-committers
mailing list