Fix an assert when trying to unwrap with nothing selected

This commit is contained in:
Andrew Wiggin
2011-10-16 15:44:58 +00:00
parent 30141b4464
commit 1c6d17e77a

View File

@@ -968,7 +968,7 @@ static int unwrap_exec(bContext *C, wmOperator *op)
short implicit= 0;
if(!uvedit_have_selection(scene, em, implicit)) {
return 0;
return OPERATOR_CANCELLED;
}
/* add uvs if they don't exist yet */