Fix UV-Editor crashes w/ over SHRT_MAX UV's
This commit is contained in:
@@ -69,7 +69,7 @@ typedef struct UvElement {
|
|||||||
/* general use flag */
|
/* general use flag */
|
||||||
unsigned char flag;
|
unsigned char flag;
|
||||||
/* If generating element map with island sorting, this stores the island index */
|
/* If generating element map with island sorting, this stores the island index */
|
||||||
unsigned short island;
|
unsigned int island;
|
||||||
} UvElement;
|
} UvElement;
|
||||||
|
|
||||||
|
|
||||||
@@ -90,9 +90,7 @@ typedef struct UvElementMap {
|
|||||||
int *islandIndices;
|
int *islandIndices;
|
||||||
} UvElementMap;
|
} UvElementMap;
|
||||||
|
|
||||||
/* invalid island index is max short. If any one has the patience
|
#define INVALID_ISLAND ((unsigned int)-1)
|
||||||
* to make that many islands, he can bite me :p */
|
|
||||||
#define INVALID_ISLAND 0xFFFF
|
|
||||||
|
|
||||||
/* Connectivity data */
|
/* Connectivity data */
|
||||||
typedef struct MeshElemMap {
|
typedef struct MeshElemMap {
|
||||||
|
Reference in New Issue
Block a user