Fix projection paint initialization failing
authorCampbell Barton <ideasman42@gmail.com>
Wed, 3 May 2017 19:06:56 +0000 (05:06 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 3 May 2017 19:09:05 +0000 (05:09 +1000)
source/blender/editors/sculpt_paint/paint_image_proj.c

index 901f24844e4001aa737d7f49d45e2a85be0f6d62..b667bb5992248fd30bd783254c75586456cd6444 100644 (file)
@@ -5205,7 +5205,7 @@ void *paint_proj_new_stroke(bContext *C, Object *ob, const float mouse[2], int m
 
                project_state_init(C, ob, ps, mode);
 
-               if (ps->ob == NULL || !(ps->ob->lay & ps->v3d->lay)) {
+               if (ps->ob == NULL || !(ob->base_flag & BASE_VISIBLED)) {
                        ps_handle->ps_views_tot = i + 1;
                        goto fail;
                }