Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorChris Want <cwant@ualberta.ca>2003-02-13 19:56:42 +0300
committerChris Want <cwant@ualberta.ca>2003-02-13 19:56:42 +0300
commit8729dfb134737131ae3d8553bcf709645eb19885 (patch)
tree2a345fe6016df67daad6e2b88e4682c3538cfeaf /source
parentbf2e5762dc46a7d11d617a7574dc7aa376ce571a (diff)
Some small de-optimizations :)
Reverting this file to it's original version fixed a bug involving particles and lattices.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/lattice.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/lattice.c b/source/blender/blenkernel/intern/lattice.c
index 0e479f82f8c..8c84ac0cca8 100644
--- a/source/blender/blenkernel/intern/lattice.c
+++ b/source/blender/blenkernel/intern/lattice.c
@@ -284,7 +284,7 @@ void calc_latt_deform(float *co)
Lattice *lt;
float fu, du, u, v, w, tu[4], tv[4], tw[4];
float *fpw, *fpv, *fpu, vec[3];
- int ui, vi, wi, uu, vv, ww, end, end2;
+ int ui, vi, wi, uu, vv, ww;
if(latticedata==0) return;
@@ -333,8 +333,7 @@ void calc_latt_deform(float *co)
wi= 0;
}
- end = wi+2;
- for(ww= wi-1; ww<=end; ww++) {
+ for(ww= wi-1; ww<=wi+2; ww++) {
w= tw[ww-wi+1];
if(w!=0.0) {
@@ -344,8 +343,7 @@ void calc_latt_deform(float *co)
}
else fpw= latticedata;
- end2 = vi+2;
- for(vv= vi-1; vv<=end; vv++) {
+ for(vv= vi-1; vv<=vi+2; vv++) {
v= w*tv[vv-vi+1];
if(v!=0.0) {
@@ -376,7 +374,6 @@ void calc_latt_deform(float *co)
}
}
-
void end_latt_deform()
{