Fix projection paint initialization failing

This commit is contained in:
Campbell Barton 2017-05-04 05:06:56 +10:00
parent 51a977a86f
commit 606d1f2b6e
Notes: blender-bot 2023-02-14 11:42:40 +01:00
Referenced by issue #51380, Vertex & Weight Painting not working in core profile
1 changed files with 1 additions and 1 deletions

View 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;
}