Fix UV-Editor crashes w/ over SHRT_MAX UV's

This commit is contained in:
Campbell Barton 2016-04-05 20:42:21 +10:00
parent b8ca4819b2
commit 214e384fc4
Notes: blender-bot 2023-02-14 07:27:02 +01:00
Referenced by issue #49887, Middle Mouse button for Rotate 3D view does not work (Mouse: Logitech MX Anywhere 2)
1 changed files with 2 additions and 4 deletions

View File

@ -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 {