Fixed the texture preview to work with multi-output node-based textures.
[blender.git] / source / blender / editors / interface / interface.c
index 4f6c6db3b16a5a46ae0e8c6d73992b3d4d5ebe50..92a3a4cf8412bb5aed1a79f58c1f4fcc31cbdbad 100644 (file)
@@ -2931,10 +2931,11 @@ void uiButSetRenameFunc(uiBut *but, uiButHandleRenameFunc func, void *arg1)
        but->rename_arg1= arg1;
 }
 
-void uiBlockSetDrawExtraFunc(uiBlock *block, void (*func)(const bContext *C, void *idv, void *argv, rcti *rect), void *arg)
+void uiBlockSetDrawExtraFunc(uiBlock *block, void (*func)(const bContext *C, void *idv, void *arg1, void *arg2, rcti *rect), void *arg1, void *arg2)
 {
        block->drawextra= func;
-       block->drawextra_arg= arg;
+       block->drawextra_arg1= arg1;
+       block->drawextra_arg2= arg2;
 }
 
 void uiButSetFunc(uiBut *but, uiButHandleFunc func, void *arg1, void *arg2)