[Bf-blender-cvs] [18875f6] blender-v2.77-release: 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
Tue Apr 5 10:39:01 CEST 2016


Commit: 18875f6aa3a2cab1c82e23b799bb0a831e18b4df
Author: Philipp Oeser
Date:   Fri Apr 1 14:20:22 2016 +0200
Branches: blender-v2.77-release
https://developer.blender.org/rB18875f6aa3a2cab1c82e23b799bb0a831e18b4df

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