Restored animated background picture, using a bad call actually, but thats
clearly noted in comments in code. Is remainder work for cleaning up the
whole render api. :)
This commit is contained in:
Ton Roosendaal 2006-04-09 18:22:05 +00:00
parent de3a622095
commit cbb48709eb
3 changed files with 7 additions and 2 deletions

@ -132,6 +132,7 @@ int calcimanr(int cfra, Tex *tex)
return imanr;
}
/* note; this function is called in src/drawview.c for animated background image, option should move to kernel */
void init_render_texture(Render *re, Tex *tex)
{
Image *ima;

@ -2830,7 +2830,7 @@ static void material_panel_tramir(Material *ma)
uiBlockBeginAlign(block);
uiDefButBitI(block, TOG, MA_NOMIST, 0, "No Mist", 10,10,150,20, &(ma->mode), 0, 0, 0, 0, "Sets the material to ignore mist values");
uiDefButBitI(block, TOG, MA_ENV, 0, "Env", 160,10,150,20, &(ma->mode), 0, 0, 0, 0, "Causes faces to render with alpha zero: allows sky/backdrop to show through");
uiDefButBitI(block, TOG, MA_ENV, 0, "Env", 160,10,150,20, &(ma->mode), 0, 0, 0, 0, "Causes faces to render with alpha zero: allows sky/backdrop to show through (only for solid faces)");
uiBlockEndAlign(block);

@ -125,6 +125,8 @@
#include "BPY_extern.h"
#include "RE_render_ext.h"
#include "blendef.h"
#include "mydevice.h"
#include "butspace.h" // event codes
@ -339,7 +341,9 @@ static void draw_bgpic(void)
if(bgpic==0) return;
if(bgpic->tex) {
// init_render_texture(bgpic->tex);
extern void init_render_texture(struct Render *re, Tex *tex);
/* note; bad call, this has to be recoded to move to blenkernel */
init_render_texture(NULL, bgpic->tex);
free_unused_animimages();
ima= bgpic->tex->ima;
}