diff --git a/source/blender/src/drawobject.c b/source/blender/src/drawobject.c index 63d5ccbc705..71065055e86 100644 --- a/source/blender/src/drawobject.c +++ b/source/blender/src/drawobject.c @@ -108,9 +108,10 @@ #include "BDR_editobject.h" #include "BDR_vpaint.h" -#include "BSE_view.h" #include "BSE_drawview.h" +#include "BSE_node.h" #include "BSE_trans_types.h" +#include "BSE_view.h" #include "blendef.h" #include "mydevice.h" @@ -189,6 +190,7 @@ static int init_gl_materials(Object *ob, int check_alpha) for(a=1; a<=ob->totcol; a++) { ma= give_current_material(ob, a); + ma= editnode_get_active_material(ma); if(ma==NULL) ma= &defmaterial; if(aref+ma->emit)*ma->r;