Better fix for "To Sphere" crashing in Image editor. It appeared to be in use for

mask/uv modes.
This commit is contained in:
2013-03-26 10:28:19 +00:00
parent f1ed223e34
commit 6e076c4164
3 changed files with 3 additions and 3 deletions

View File

@@ -1160,7 +1160,7 @@ int initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *even
t->options |= CTX_MASK;
}
else {
BLI_assert(0);
/* image not in uv edit, nor in mask mode, can happen for some tools */
}
}
else if (t->spacetype == SPACE_NODE) {