[Bf-blender-cvs] [093ebb71ee5] temp-T96710-pbvh-pixels: Hook experimental flag to paint brush.
Jeroen Bakker
noreply at git.blender.org
Mon Apr 4 14:36:51 CEST 2022
Commit: 093ebb71ee578e5dc367a04c9748b68a268e6284
Author: Jeroen Bakker
Date: Mon Apr 4 14:31:53 2022 +0200
Branches: temp-T96710-pbvh-pixels
https://developer.blender.org/rB093ebb71ee578e5dc367a04c9748b68a268e6284
Hook experimental flag to paint brush.
===================================================================
M source/blender/editors/sculpt_paint/sculpt_paint_image.cc
===================================================================
diff --git a/source/blender/editors/sculpt_paint/sculpt_paint_image.cc b/source/blender/editors/sculpt_paint/sculpt_paint_image.cc
index def65e56b9d..23612e005fd 100644
--- a/source/blender/editors/sculpt_paint/sculpt_paint_image.cc
+++ b/source/blender/editors/sculpt_paint/sculpt_paint_image.cc
@@ -407,6 +407,9 @@ bool SCULPT_paint_image_canvas_get(Object *ob, Image **r_image, ImageUser **r_im
bool SCULPT_use_image_paint_brush(Sculpt *UNUSED(sd), Object *ob)
{
+ if (!U.experimental.use_sculpt_texture_paint) {
+ return false;
+ }
if (ob->type != OB_MESH) {
return false;
}
More information about the Bf-blender-cvs
mailing list