Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-04-05 13:42:21 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-04-05 13:45:38 +0300
commit89f6987953ebad852942e719a41ace3b217ec59a (patch)
tree9efb2387311033f68eeea98b97a4abdc18e0c785
parent63e0d3a47fdae8a42cd584f13d0530ea57ca0e6f (diff)
Fix UV-Editor crashes w/ over SHRT_MAX UV's
-rw-r--r--source/blender/blenkernel/BKE_mesh_mapping.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/blenkernel/BKE_mesh_mapping.h b/source/blender/blenkernel/BKE_mesh_mapping.h
index c8a17008f5d..936858f84b2 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 {