Solve compilation error: Field has incomplete type 'enum eViewProj'

Error reported by @tomjpsun
Patch D2491
This commit is contained in:
2017-01-30 02:19:18 -03:00
parent cdff659036
commit 167ab03f36

View File

@@ -59,6 +59,12 @@
#include "transform.h"
enum eViewProj {
VIEW_PROJ_NONE = -1,
VIEW_PROJ_ORTHO = 0,
VIEW_PROJ_PERSP = -1,
};
typedef struct SnapData {
short snap_to;
float mval[2];
@@ -122,12 +128,6 @@ struct SnapObjectContext {
};
enum eViewProj {
VIEW_PROJ_NONE = -1,
VIEW_PROJ_ORTHO = 0,
VIEW_PROJ_PERSP = -1,
};
static int dm_looptri_to_poly_index(DerivedMesh *dm, const MLoopTri *lt);