Fixed an apparent typo, was checking for vertex paint twice.
authorNicholas Bishop <nicholasbishop@gmail.com>
Sun, 11 Jan 2009 21:42:39 +0000 (21:42 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Sun, 11 Jan 2009 21:42:39 +0000 (21:42 +0000)
source/blender/editors/space_view3d/view3d_header.c

index fa90730fb05c8895a9ecba384940358139512577..ea886929677cfdf0558f0fb6dad3fd89d019053e 100644 (file)
@@ -142,7 +142,7 @@ void ED_view3d_exit_paint_modes(bContext *C)
 {
        if(G.f & G_VERTEXPAINT)
                WM_operator_name_call(C, "VIEW3D_OT_vpaint_toggle", WM_OP_EXEC_REGION_WIN, NULL, NULL);
-       else if(G.f & G_VERTEXPAINT)
+       else if(G.f & G_WEIGHTPAINT)
                WM_operator_name_call(C, "VIEW3D_OT_wpaint_toggle", WM_OP_EXEC_REGION_WIN, NULL, NULL);
 
 //     if(G.f & G_TEXTUREPAINT) set_texturepaint();