Fix crash transforming UV /w PET-connected mode

This commit is contained in:
Campbell Barton 2015-06-18 12:08:59 +10:00 committed by Sergey Sharybin
parent 3d1c8f5132
commit 6bf9aaa6e6
1 changed files with 5 additions and 5 deletions

View File

@ -2740,12 +2740,12 @@ static void createTransUVs(bContext *C, TransInfo *t)
/* count */
if (is_prop_connected) {
/* create element map with island information */
if (ts->uv_flag & UV_SYNC_SELECTION) {
elementmap = BM_uv_element_map_create(em->bm, false, true);
}
else {
elementmap = BM_uv_element_map_create(em->bm, true, true);
const bool use_facesel = (ts->uv_flag & UV_SYNC_SELECTION) == 0;
elementmap = BM_uv_element_map_create(em->bm, use_facesel, true);
if (elementmap == NULL) {
return;
}
island_enabled = BLI_BITMAP_NEW(elementmap->totalIslands, "TransIslandData(UV Editing)");
}