Bug in Nurb Surface orco, causing illegal pointer to be set, and crash.
Another oldie, pre-2.25!
This commit is contained in:
Ton Roosendaal
2004-11-28 18:35:40 +00:00
parent ac9f9298fd
commit 12795fede8

View File

@@ -1937,8 +1937,10 @@ static void init_render_surf(Object *ob)
if (dl->flag & DL_CYCLIC_V) {
ver= RE_findOrAddVert(R.totvert++);
VECCOPY(ver->co, v1->co);
ver->orco= orco;
orco+= 3;
if(orco) {
ver->orco= orco;
orco+= 3;
}
}
}
@@ -1951,9 +1953,10 @@ static void init_render_surf(Object *ob)
v1= RE_findOrAddVert(startvert + v);
ver= RE_findOrAddVert(R.totvert++);
VECCOPY(ver->co, v1->co);
ver->orco= orco;
orco +=3;
if(orco) {
ver->orco= orco;
orco +=3;
}
}
sizeu++;
}