Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-05-15 16:59:47 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-05-15 16:59:47 +0300
commit1c21e088f22d5658a3d96121303b01f7d27d23c1 (patch)
tree0fa84e76c488126050e90ee44c8272f72f9ccacb /source/blender/editors/space_image
parentef8ad66aa2d25f414822871f61ece54b0d5a6931 (diff)
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.
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r--source/blender/editors/space_image/image_buttons.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_image/image_buttons.c b/source/blender/editors/space_image/image_buttons.c
index db917b0cdf5..ad9fb49baef 100644
--- a/source/blender/editors/space_image/image_buttons.c
+++ b/source/blender/editors/space_image/image_buttons.c
@@ -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 */