Added Accessor initializers

Added Accessor intializers
Now byteOffset and normalized are initialized to their default
values. componentType and Type are initialized to bad values
on purpose, they must be set when loading or creating the model.
This commit is contained in:
Eero Pajarre
2019-11-18 12:59:05 +02:00
parent 4accacb877
commit fa9f361ab2

View File

@@ -887,8 +887,13 @@ struct Accessor {
// unreachable return 0;
}
Accessor() {
bufferView = -1;
Accessor() :
bufferView(-1),
byteOffset(0),
normalized(false),
componentType(-1),
count(0),
type(-1){
sparse.isSparse = false;
}
DEFAULT_METHODS(Accessor)