Preview render in 3d window: when window type changes (like 3d window to
UV window), and you change the window size, and restore to 3d view, the
rendered preview had to be re-initialized.

texture.c: a return was added without value.
This commit is contained in:
Ton Roosendaal 2006-08-09 10:49:52 +00:00
parent c56f04cb5f
commit 8cd491750e
2 changed files with 6 additions and 3 deletions

@ -2370,7 +2370,7 @@ int externtex(MTex *mtex, float *vec, float *tin, float *tr, float *tg, float *t
int rgb;
tex= mtex->tex;
if(tex==NULL) return;
if(tex==NULL) return 0;
texr.nor= NULL;
/* placement */

@ -1943,12 +1943,15 @@ static void testareas(void)
}
if (!rcti_eq(&oldwr, &sa->winrct)) {
SpaceLink *sl= sa->spacedata.first;
mywinposition(sa->win, sa->winrct.xmin, sa->winrct.xmax, sa->winrct.ymin, sa->winrct.ymax);
addqueue(sa->win, CHANGED, 1);
/* exception handling... probably we need generic event */
if(sa->spacetype==SPACE_VIEW3D)
BIF_view3d_previewrender_free(sa->spacedata.first);
for(; sl; sl= sl->next)
if(sl->spacetype==SPACE_VIEW3D)
BIF_view3d_previewrender_free((View3D *)sl);
}
}
}