forked from bartvdbraak/blender
Bugreport in irc:
The Preview panel in UV window, for compositing, sets a 'crop' flag in the scene when used. Somehow this flag can hang when you switch screens or close windows. Or even worse, it crashed on renders. This commit ensures that the compositor survives and gives error prints. The real issue, hanging flags on closing windows, has to be solved still.
This commit is contained in:
parent
afc880bb45
commit
7ce7d0e7d3
@ -1000,7 +1000,10 @@ static void node_composit_exec_rlayers(void *data, bNode *node, bNodeStack **in,
|
||||
stackbuf= alloc_compbuf(rr->rectx, rr->recty, CB_RGBA, 0);
|
||||
stackbuf->rect= rl->rectf;
|
||||
}
|
||||
|
||||
if(stackbuf==NULL) {
|
||||
printf("Error; Preview Panel in UV Window returns zero sized image\n");
|
||||
}
|
||||
else {
|
||||
stackbuf->xof= rr->xof;
|
||||
stackbuf->yof= rr->yof;
|
||||
|
||||
@ -1033,6 +1036,7 @@ static void node_composit_exec_rlayers(void *data, bNode *node, bNodeStack **in,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* custom1 = render layer in use */
|
||||
|
@ -1308,6 +1308,7 @@ static void image_panel_preview(ScrArea *sa, short cntrl) // IMAGE_HANDLER_PREVI
|
||||
|
||||
if(is_preview_allowed(sa)==0) {
|
||||
rem_blockhandler(sa, IMAGE_HANDLER_PREVIEW);
|
||||
G.scene->r.scemode &= ~R_COMP_CROP; /* quite weak */
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user