Fix regression reported by Early Ehlinger on ML.
Original bug: https://projects.blender.org/tracker/?group_id=9&atid=127&func=detail&aid=3760 Code remove in revision 6654: http://projects.blender.org/plugins/scmsvn/viewcvs.php/trunk/blender/source/blender/src/renderwin.c?root=bf-blender&r1=6491&r2=6654 and return in revision 6839 (without the point checking): http://projects.blender.org/plugins/scmsvn/viewcvs.php/trunk/blender/source/blender/src/renderwin.c?root=bf-blender&r1=6835&r2=6839
This commit is contained in:
parent
8198ea61be
commit
209407a7e1
@ -1081,11 +1081,14 @@ static void do_render(int anim)
|
||||
|
||||
/* allow localview render for objects with lights in normal layers */
|
||||
if(curarea->spacetype==SPACE_VIEW3D) {
|
||||
if(G.vd->lay & 0xFF000000) {
|
||||
G.scene->lay |= G.vd->lay;
|
||||
G.scene->r.scemode |= R_SINGLE_LAYER;
|
||||
/* if view is defined (might not be if called from script), check and set layers. */
|
||||
if(G.vd) {
|
||||
if(G.vd->lay & 0xFF000000) {
|
||||
G.scene->lay |= G.vd->lay;
|
||||
G.scene->r.scemode |= R_SINGLE_LAYER;
|
||||
}
|
||||
else G.scene->lay= G.vd->lay;
|
||||
}
|
||||
else G.scene->lay= G.vd->lay;
|
||||
}
|
||||
|
||||
if(anim)
|
||||
|
Loading…
Reference in New Issue
Block a user