Fixed the texture preview to work with multi-output node-based textures.
[blender.git] / source / blender / editors / interface / interface_widgets.c
index cea3038b901fd69caf0bd2a65c473bbdc5ae4a28..2e0f0897af4a8b77e85ea4b4c4fee200728e4e38 100644 (file)
@@ -2065,7 +2065,7 @@ static void widget_draw_extra_mask(const bContext *C, uiBut *but, uiWidgetType *
        
        if(but->block->drawextra) {
                /* note: drawextra can change rect +1 or -1, to match round errors of existing previews */
-               but->block->drawextra(C, but->poin, but->block->drawextra_arg, rect);
+               but->block->drawextra(C, but->poin, but->block->drawextra_arg1, but->block->drawextra_arg2, rect);
                
                /* make mask to draw over image */
                UI_GetThemeColor3ubv(TH_BACK, col);