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:
Sergey Sharybin 2017-05-15 15:59:47 +02:00
parent ef8ad66aa2
commit 1c21e088f2
Notes: blender-bot 2023-02-14 07:23:26 +01:00
Referenced by issue #50109, Blender crash when a  "Render Result" as a Texture
1 changed files with 4 additions and 0 deletions

View File

@ -712,6 +712,10 @@ static void uiblock_layer_pass_buttons(
const char *display_name = "";
const bool show_stereo = (iuser->flag & IMA_SHOW_STEREO) != 0;
if (iuser->scene == NULL) {
return;
}
uiLayoutRow(layout, true);
/* layer menu is 1/3 larger than pass */