diff options
Diffstat (limited to 'source/blender/src/editview.c')
-rw-r--r-- | source/blender/src/editview.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/source/blender/src/editview.c b/source/blender/src/editview.c index 02b28f1e8d9..6a79d9b4ddd 100644 --- a/source/blender/src/editview.c +++ b/source/blender/src/editview.c @@ -1076,15 +1076,14 @@ void set_active_base(Base *base) /* activating a non-mesh, should end a couple of modes... */ if(base) { if(base->object->type!=OB_MESH) { - if(G.f & G_SCULPTMODE) { - set_sculptmode(); - } - if(G.f & G_WEIGHTPAINT) { + if(G.f & G_SCULPTMODE) + set_sculptmode(); /* toggle */ + if(G.f & G_WEIGHTPAINT) set_wpaint(); /* toggle */ - } - if(G.f & G_VERTEXPAINT) { + if(G.f & G_VERTEXPAINT) set_vpaint(); /* toggle */ - } + if(G.f & G_TEXTUREPAINT) + set_texturepaint(); /* Switch off tex paint */ } /* always end this */ if(G.f & G_FACESELECT) { |