Fix [#21347] no image at node editor
authorMatt Ebb <matt@mke3.net>
Thu, 1 Apr 2010 06:30:05 +0000 (06:30 +0000)
committerMatt Ebb <matt@mke3.net>
Thu, 1 Apr 2010 06:30:05 +0000 (06:30 +0000)
Node preview render wasn't getting the correct test_break callback

source/blender/editors/render/render_preview.c

index 1a9e70518bc7d68e7a272ce8f3823c6cedf07b89..aef652cd116554554999f9e870947c57eb30eb5d 100644 (file)
@@ -921,7 +921,7 @@ static void shader_preview_render(ShaderPreview *sp, ID *id, int split, int firs
        sce->r.size= 100;
 
        /* callbacs are cleared on GetRender() */
-       if(sp->pr_method==PR_BUTS_RENDER) {
+       if(ELEM(sp->pr_method, PR_BUTS_RENDER, PR_NODE_RENDER)) {
                RE_display_draw_cb(re, sp, shader_preview_draw);
                RE_test_break_cb(re, sp, shader_preview_break);
        }