Fix T50109: Blender crash when a "Render Result" as a Texture
This commit fixes crash, but user feedback can be improved here to inform artist that one can't use Render Result as a texture since that will cause feedback loop.
This commit is contained in:
@@ -712,6 +712,10 @@ static void uiblock_layer_pass_buttons(
|
|||||||
const char *display_name = "";
|
const char *display_name = "";
|
||||||
const bool show_stereo = (iuser->flag & IMA_SHOW_STEREO) != 0;
|
const bool show_stereo = (iuser->flag & IMA_SHOW_STEREO) != 0;
|
||||||
|
|
||||||
|
if (iuser->scene == NULL) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
uiLayoutRow(layout, true);
|
uiLayoutRow(layout, true);
|
||||||
|
|
||||||
/* layer menu is 1/3 larger than pass */
|
/* layer menu is 1/3 larger than pass */
|
||||||
|
Reference in New Issue
Block a user