[Bf-blender-cvs] [b0cfd7a9b85] blender2.8: Fix T55082: Add Paint Slots for texture painting not working

Dalai Felinto noreply at git.blender.org
Wed May 16 15:02:39 CEST 2018


Commit: b0cfd7a9b8529ea5882e1d6fbbf8571b62d64037
Author: Dalai Felinto
Date:   Wed May 16 14:59:16 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBb0cfd7a9b8529ea5882e1d6fbbf8571b62d64037

Fix T55082: Add Paint Slots for texture painting not working

We changed how this work since the BI removal. But since this operator
was moved to the topbar its poll function was returning false.

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

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 fd8fe84cffc..a1435d5916a 100644
--- a/source/blender/editors/sculpt_paint/paint_image_proj.c
+++ b/source/blender/editors/sculpt_paint/paint_image_proj.c
@@ -5761,7 +5761,7 @@ void PAINT_OT_add_texture_paint_slot(wmOperatorType *ot)
 	/* api callbacks */
 	ot->invoke = texture_paint_add_texture_paint_slot_invoke;
 	ot->exec = texture_paint_add_texture_paint_slot_exec;
-	ot->poll = ED_operator_region_view3d_active;
+	ot->poll = ED_operator_object_active;
 
 	/* flags */
 	ot->flag = OPTYPE_UNDO;



More information about the Bf-blender-cvs mailing list