Fix for #34739 and #35060, avoid ambiguity in compositor viewer nodes.
[blender.git] / source / blender / editors / space_node / node_draw.c
index 871d3751a4daee0d539755f774a1b838b65ba3fa..992caf5285f83fe4b333f560bc43bc6708d1b212 100644 (file)
@@ -1314,7 +1314,7 @@ void drawnodespace(const bContext *C, ARegion *ar)
                        UI_view2d_multi_grid_draw(v2d, (depth > 0 ? TH_NODE_GROUP : TH_BACK), U.widget_unit, 5, 2);
                        
                        /* backdrop */
-                       draw_nodespace_back_pix(C, ar, snode);
+                       draw_nodespace_back_pix(C, ar, snode, path->parent_key);
                        
                        draw_nodetree(C, ar, ntree, path->parent_key);
                }
@@ -1339,7 +1339,7 @@ void drawnodespace(const bContext *C, ARegion *ar)
                UI_view2d_multi_grid_draw(v2d, TH_BACK, U.widget_unit, 5, 2);
                
                /* backdrop */
-               draw_nodespace_back_pix(C, ar, snode);
+               draw_nodespace_back_pix(C, ar, snode, NODE_INSTANCE_KEY_NONE);
        }
        
        ED_region_draw_cb_draw(C, ar, REGION_DRAW_POST_VIEW);