[Bf-blender-cvs] [ae49f2e] master: Fix T48013: UV Sculpt Brush Does not appear in UV window - but does show up in uv panels (t, n)

Philipp Oeser noreply at git.blender.org
Fri Apr 1 14:23:03 CEST 2016


Commit: ae49f2ed99b650669541daf056e979c28dc7c73b
Author: Philipp Oeser
Date:   Fri Apr 1 14:20:22 2016 +0200
Branches: master
https://developer.blender.org/rBae49f2ed99b650669541daf056e979c28dc7c73b

Fix T48013: UV Sculpt Brush Does not appear in UV window - but does show up in uv panels (t, n)

Epic fail in recent rB2c3985 :/

To be backported to 2.77a!

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

M	source/blender/editors/sculpt_paint/sculpt_uv.c

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

diff --git a/source/blender/editors/sculpt_paint/sculpt_uv.c b/source/blender/editors/sculpt_paint/sculpt_uv.c
index 8ed654c..fd2a0b1 100644
--- a/source/blender/editors/sculpt_paint/sculpt_uv.c
+++ b/source/blender/editors/sculpt_paint/sculpt_uv.c
@@ -177,7 +177,7 @@ static int uv_sculpt_brush_poll_do(bContext *C, const bool check_region)
 
 	if (ret) {
 		ARegion *ar = CTX_wm_region(C);
-		if ((!toolsettings->use_uv_sculpt) || (check_region && ar && (ar->regiontype == RGN_TYPE_WINDOW))) {
+		if ((!toolsettings->use_uv_sculpt) || (check_region && ar && (ar->regiontype != RGN_TYPE_WINDOW))) {
 			ret = 0;
 		}
 	}




More information about the Bf-blender-cvs mailing list