forked from bartvdbraak/blender
Bugfix #17902
Black dots appearing in mirroring 3d beveled curves, when using orco texture coords. Appeared there was memory read just outside of the allocation.
This commit is contained in:
parent
752920c531
commit
fdc1ef2c25
@ -1100,9 +1100,12 @@ float *make_orco_curve(Object *ob)
|
|||||||
fp[1]= 2.0f*v/(dl->nr-1) - 1.0f;
|
fp[1]= 2.0f*v/(dl->nr-1) - 1.0f;
|
||||||
fp[2]= 0.0;
|
fp[2]= 0.0;
|
||||||
} else {
|
} else {
|
||||||
|
float *vert;
|
||||||
int realv= v % dl->nr;
|
int realv= v % dl->nr;
|
||||||
|
int realu= u % dl->parts;
|
||||||
VECCOPY(fp, &dl->verts[(dl->nr*u + realv)*3]);
|
|
||||||
|
vert= dl->verts + 3*(dl->nr*realu + realv);
|
||||||
|
VECCOPY(fp, vert);
|
||||||
|
|
||||||
fp[0]= (fp[0]-cu->loc[0])/cu->size[0];
|
fp[0]= (fp[0]-cu->loc[0])/cu->size[0];
|
||||||
fp[1]= (fp[1]-cu->loc[1])/cu->size[1];
|
fp[1]= (fp[1]-cu->loc[1])/cu->size[1];
|
||||||
|
Loading…
Reference in New Issue
Block a user