Code cleanup - Removing/commenting out various bits of legacy cruft related to
[blender.git] / source / blender / editors / space_node / node_draw.c
index 921aceb7b2ee6a4c364eb625d6e53920c70068b5..c65bbd6e15f61494571c3c76efb3cae42b1ac020 100644 (file)
@@ -1138,15 +1138,15 @@ void drawnodespace(const bContext *C, ARegion *ar, View2D *v2d)
        glDisable(GL_BLEND);
        
        /* draw grease-pencil ('canvas' strokes) */
-       if (/*(snode->flag & SNODE_DISPGP) &&*/ (snode->nodetree))
-               draw_gpencil_view2d((bContext*)C, 1);
+       if (snode->nodetree)
+               draw_gpencil_view2d(C, 1);
        
        /* reset view matrix */
        UI_view2d_view_restore(C);
        
        /* draw grease-pencil (screen strokes, and also paintbuffer) */
-       if (/*(snode->flag & SNODE_DISPGP) && */(snode->nodetree))
-               draw_gpencil_view2d((bContext*)C, 0);
+       if (snode->nodetree)
+               draw_gpencil_view2d(C, 0);
        
        /* scrollers */
        scrollers= UI_view2d_scrollers_calc(C, v2d, 10, V2D_GRID_CLAMP, V2D_ARG_DUMMY, V2D_ARG_DUMMY);