From 214e384fc4ac0924fcad26f5eb64fc9e4c24b8a8 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 5 Apr 2016 20:42:21 +1000 Subject: Fix UV-Editor crashes w/ over SHRT_MAX UV's --- source/blender/blenkernel/BKE_mesh_mapping.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source/blender/blenkernel/BKE_mesh_mapping.h') diff --git a/source/blender/blenkernel/BKE_mesh_mapping.h b/source/blender/blenkernel/BKE_mesh_mapping.h index e4b2b8ae9b6..d7dd9ed3ac5 100644 --- a/source/blender/blenkernel/BKE_mesh_mapping.h +++ b/source/blender/blenkernel/BKE_mesh_mapping.h @@ -69,7 +69,7 @@ typedef struct UvElement { /* general use flag */ unsigned char flag; /* If generating element map with island sorting, this stores the island index */ - unsigned short island; + unsigned int island; } UvElement; @@ -90,9 +90,7 @@ typedef struct UvElementMap { int *islandIndices; } UvElementMap; -/* invalid island index is max short. If any one has the patience - * to make that many islands, he can bite me :p */ -#define INVALID_ISLAND 0xFFFF +#define INVALID_ISLAND ((unsigned int)-1) /* Connectivity data */ typedef struct MeshElemMap { -- cgit v1.2.3