Fixes for preview render in buttons:

- restored type choice compatiblity (plane, sphere, cube)  with 2.41   release (sorry, will break saved files with CVS... my fault, should
  have known.)

- removed lamp choices (lights now are different per preview, no fixed
  choices).

- added checkered plane behind the plane preview. nicer for halos.
This commit is contained in:
2006-06-14 18:04:26 +00:00
parent 6388715b43
commit c0c7c4ba14
6 changed files with 11138 additions and 10934 deletions

View File

@@ -265,6 +265,8 @@ static Scene *preview_prepare_scene(RenderInfo *ri, int id_type, ID *id, int pr_
// sce->r.mode |= G.scene->r.mode & R_THREADS;
/* this flag tells render to not execute depsgraph or ipos etc */
sce->r.scemode |= R_PREVIEWBUTS;
/* set world always back, is used now */
sce->world= pr_main->world.first;
if(id_type==ID_MA) {
Material *mat= (Material *)id;