diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-12-12 22:25:52 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-12-12 22:25:52 +0400 |
commit | ba3c6d4d34e9f36f572b63efe7d8ed4914421726 (patch) | |
tree | bfe353840190685306d8f1964ae2a33eaec4b130 /source | |
parent | 3e7ad0e2714009509004669d8da8ea8c71fa0d04 (diff) |
Fix #29603: Mode switch on linked objects
Do not allow to enter to weight paint mode for proxied objects.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_vertex.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c index fa791665eb8..52d1cf0b012 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex.c +++ b/source/blender/editors/sculpt_paint/paint_vertex.c @@ -1763,10 +1763,13 @@ static int set_wpaint(bContext *C, wmOperator *UNUSED(op)) /* toggle */ /* for switching to/from mode */ static int paint_poll_test(bContext *C) { + Object *ob= CTX_data_active_object(C); if(CTX_data_edit_object(C)) return 0; if(CTX_data_active_object(C)==NULL) return 0; + if(!ob->data || ((ID *)ob->data)->lib) + return 0; return 1; } |