Fix projection paint initialization failing
This commit is contained in:
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
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue