|
@@ -64,7 +64,7 @@ namespace Blender {
|
|
|
// * C++ style comments only
|
|
|
//
|
|
|
// * Structures may include the primitive types char, int, short,
|
|
|
-// float, double. Signedness specifiers are not allowed on
|
|
|
+// float, double. Signed specifiers are not allowed on
|
|
|
// integers. Enum types are allowed, but they must have been
|
|
|
// defined in this header.
|
|
|
//
|
|
@@ -85,9 +85,9 @@ namespace Blender {
|
|
|
// provided they are neither pointers nor arrays.
|
|
|
//
|
|
|
// * One of WARN, FAIL can be appended to the declaration (
|
|
|
-// prior to the semiolon to specifiy the error handling policy if
|
|
|
+// prior to the semicolon to specify the error handling policy if
|
|
|
// this field is missing in the input DNA). If none of those
|
|
|
-// is specified the default policy is to subtitute a default
|
|
|
+// is specified the default policy is to substitute a default
|
|
|
// value for the field.
|
|
|
//
|
|
|
|
|
@@ -102,16 +102,16 @@ struct Image;
|
|
|
|
|
|
#define AI_BLEND_MESH_MAX_VERTS 2000000000L
|
|
|
|
|
|
+static const size_t MaxNameLen = 1024;
|
|
|
+
|
|
|
// -------------------------------------------------------------------------------
|
|
|
struct ID : ElemBase {
|
|
|
-
|
|
|
- char name[1024] WARN;
|
|
|
+ char name[ MaxNameLen ] WARN;
|
|
|
short flag;
|
|
|
};
|
|
|
|
|
|
// -------------------------------------------------------------------------------
|
|
|
struct ListBase : ElemBase {
|
|
|
-
|
|
|
std::shared_ptr<ElemBase> first;
|
|
|
std::shared_ptr<ElemBase> last;
|
|
|
};
|
|
@@ -126,7 +126,6 @@ struct PackedFile : ElemBase {
|
|
|
|
|
|
// -------------------------------------------------------------------------------
|
|
|
struct GroupObject : ElemBase {
|
|
|
-
|
|
|
std::shared_ptr<GroupObject> prev,next FAIL;
|
|
|
std::shared_ptr<Object> ob;
|
|
|
};
|
|
@@ -142,7 +141,6 @@ struct Group : ElemBase {
|
|
|
// -------------------------------------------------------------------------------
|
|
|
struct World : ElemBase {
|
|
|
ID id FAIL;
|
|
|
-
|
|
|
};
|
|
|
|
|
|
// -------------------------------------------------------------------------------
|
|
@@ -217,7 +215,6 @@ struct TFace : ElemBase {
|
|
|
|
|
|
// -------------------------------------------------------------------------------
|
|
|
struct MTFace : ElemBase {
|
|
|
-
|
|
|
float uv[4][2] FAIL;
|
|
|
char flag;
|
|
|
short mode;
|
|
@@ -235,7 +232,6 @@ struct MDeformWeight : ElemBase {
|
|
|
|
|
|
// -------------------------------------------------------------------------------
|
|
|
struct MDeformVert : ElemBase {
|
|
|
-
|
|
|
vector<MDeformWeight> dw WARN;
|
|
|
int totweight;
|
|
|
};
|
|
@@ -264,7 +260,6 @@ struct Material : ElemBase {
|
|
|
float darkness;
|
|
|
float refrac;
|
|
|
|
|
|
-
|
|
|
float amb;
|
|
|
float ang;
|
|
|
float spectra;
|