diff options
author | Ton Roosendaal <ton@blender.org> | 2006-06-14 22:04:26 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-06-14 22:04:26 +0400 |
commit | c0c7c4ba143cea1e951a6e49be69736c86ef52b6 (patch) | |
tree | 435552b28a186774f55dab8a172d1c97a921597c /source/blender/src/previewrender.c | |
parent | 6388715b438611a43b87e9542c43387fc9b5b9d9 (diff) |
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.
Diffstat (limited to 'source/blender/src/previewrender.c')
-rw-r--r-- | source/blender/src/previewrender.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/src/previewrender.c b/source/blender/src/previewrender.c index a0b76a2736e..ee818455c78 100644 --- a/source/blender/src/previewrender.c +++ b/source/blender/src/previewrender.c @@ -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; |