Prop mode goodie;

- Made proportional edit in Mesh editmode use connectivity to clip the
  area where proportional editing is allowed.
  Uses some kind of manhattan distance for clip area still, so is slightly
  too large for diagonals. Will be worked on!

- Fix; in constraint code, using (0 0 0) delta caused NaN.
This commit is contained in:
2005-03-29 17:05:43 +00:00
parent a95d5d7312
commit fa37194082
4 changed files with 88 additions and 5 deletions

View File

@@ -219,7 +219,9 @@ static void axisProjection(TransInfo *t, float axis[3], float in[3], float out[3
if(in[0]!=0.0f || in[1]!=0.0f || in[2]!=0.0) {
Projf(vec, in, n);
factor = Normalise(vec);
factor /= Inpf(axis, vec);
// prevent NaN for 0.0/0.0
if(factor!=0.0f)
factor /= Inpf(axis, vec);
VecMulf(axis, factor);
VECCOPY(out, axis);