[Bf-blender-cvs] [f3550242ed3] blender2.8: Remove visibility check for project paint

Campbell Barton noreply at git.blender.org
Thu May 4 11:53:49 CEST 2017


Commit: f3550242ed3d64a3cb81a698073cf94cf1b7326b
Author: Campbell Barton
Date:   Thu May 4 19:58:48 2017 +1000
Branches: blender2.8
https://developer.blender.org/rBf3550242ed3d64a3cb81a698073cf94cf1b7326b

Remove visibility check for project paint

This is such a corner case, and currently there is no way to paint on a
hidden object, removing.

===================================================================

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 b667bb59922..7cabd1c3b10 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 || !(ob->base_flag & BASE_VISIBLED)) {
+		if (ps->ob == NULL) {
 			ps_handle->ps_views_tot = i + 1;
 			goto fail;
 		}




More information about the Bf-blender-cvs mailing list