diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-05-03 22:06:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-05-03 22:09:05 +0300 |
commit | 606d1f2b6e35025fc20205ce6a0cc6bcf4724a22 (patch) | |
tree | b9e0a48ffd340579fc176bc29c4ba5b5cbdfe8f9 | |
parent | 51a977a86f6f37a403caad6b9f91853baf400a0a (diff) |
Fix projection paint initialization failing
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image_proj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c index 901f24844e4..b667bb59922 100644 --- a/source/blender/editors/sculpt_paint/paint_image_proj.c +++ b/source/blender/editors/sculpt_paint/paint_image_proj.c @@ -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; } |