Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2011-12-12 22:25:52 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2011-12-12 22:25:52 +0400
commitba3c6d4d34e9f36f572b63efe7d8ed4914421726 (patch)
treebfe353840190685306d8f1964ae2a33eaec4b130
parent3e7ad0e2714009509004669d8da8ea8c71fa0d04 (diff)
Fix #29603: Mode switch on linked objects
Do not allow to enter to weight paint mode for proxied objects.
-rw-r--r--source/blender/editors/sculpt_paint/paint_vertex.c3
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;
}