2.5/Vertex paint:
[blender.git] / source / blender / editors / space_view3d / view3d_buttons.c
index c09646e7cd75bfeb7594d888711f5425df1cfab3..8057ed9f819bb0071c624dd6c0bbf62aa54e07b7 100644 (file)
@@ -1058,7 +1058,7 @@ static void view3d_panel_object(const bContext *C, Panel *pa)
 
 // XXX uiSetButLock(object_is_libdata(ob), ERROR_LIBDATA_MESSAGE);
        
-       if(G.f & (G_VERTEXPAINT|G_TEXTUREPAINT|G_WEIGHTPAINT)) {
+       if(ob->mode & OB_MODE_VERTEX_PAINT || G.f & (G_TEXTUREPAINT|G_WEIGHTPAINT)) {
        }
        else {
                //bt= uiDefBut(block, TEX, B_IDNAME, "OB: ",    10,180,140,20, ob->id.name+2, 0.0, 21.0, 0, 0, "");