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!
This commit is contained in:
Philipp Oeser 2016-04-01 14:20:22 +02:00 committed by Bastien Montagne
parent f185effa15
commit ae49f2ed99

@ -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;
}
}