[Bf-blender-cvs] [606d1f2b6e3] blender2.8: Fix projection paint initialization failing
Campbell Barton
noreply at git.blender.org
Wed May 3 21:03:49 CEST 2017
Commit: 606d1f2b6e35025fc20205ce6a0cc6bcf4724a22
Author: Campbell Barton
Date: Thu May 4 05:06:56 2017 +1000
Branches: blender2.8
https://developer.blender.org/rB606d1f2b6e35025fc20205ce6a0cc6bcf4724a22
Fix projection paint initialization failing
===================================================================
M source/blender/editors/sculpt_paint/paint_image_proj.c
===================================================================
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;
}
More information about the Bf-blender-cvs
mailing list