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. :)
+/* 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;
void init_render_texture(Render *re, Tex *tex)
{
Image *ima;
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");
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)");
+#include "RE_render_ext.h"
+
#include "blendef.h"
#include "mydevice.h"
#include "butspace.h" // event codes
#include "blendef.h"
#include "mydevice.h"
#include "butspace.h" // event codes
if(bgpic==0) return;
if(bgpic->tex) {
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;
}
free_unused_animimages();
ima= bgpic->tex->ima;
}