- add a temp var for edge scanfill (fits in 4 bytes alignment - won't increase mem usage)

- make keyindex an unsigned int, since its used to store vertex indices
- use BLI_in_rcti_v for IN_2D_VERT_SCROLL and IN_2D_HORIZ_SCROLL
This commit is contained in:
2012-07-12 08:34:59 +00:00
parent 993dfd7d2a
commit 2560725807
2 changed files with 6 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ typedef struct ScanFillVert {
} tmp;
float co[3]; /* vertex location */
float xy[2]; /* 2D copy of vertex location (using dominant axis) */
int keyindex; /* original index #, for restoring key information */
unsigned int keyindex; /* original index #, for restoring key information */
short poly_nr;
unsigned char f, h;
} ScanFillVert;
@@ -80,6 +80,9 @@ typedef struct ScanFillEdge {
struct ScanFillVert *v1, *v2;
short poly_nr;
unsigned char f;
union {
unsigned char c;
} tmp;
} ScanFillEdge;
typedef struct ScanFillFace {