mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-11 12:59:02 +08:00
Delete Accessor.byteStride
field which was removed in glTF 2.0 spec.
This commit is contained in:
parent
a12620f378
commit
822788921e
@ -333,8 +333,6 @@ static void Dump(const tinygltf::Model &model) {
|
|||||||
<< std::endl;
|
<< std::endl;
|
||||||
std::cout << Indent(2) << "byteOffset : " << accessor.byteOffset
|
std::cout << Indent(2) << "byteOffset : " << accessor.byteOffset
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
std::cout << Indent(2) << "byteStride : " << accessor.byteStride
|
|
||||||
<< std::endl;
|
|
||||||
std::cout << Indent(2) << "componentType: "
|
std::cout << Indent(2) << "componentType: "
|
||||||
<< PrintComponentType(accessor.componentType) << "("
|
<< PrintComponentType(accessor.componentType) << "("
|
||||||
<< accessor.componentType << ")" << std::endl;
|
<< accessor.componentType << ")" << std::endl;
|
||||||
|
@ -399,7 +399,6 @@ struct Accessor {
|
|||||||
// are not supported
|
// are not supported
|
||||||
std::string name;
|
std::string name;
|
||||||
size_t byteOffset;
|
size_t byteOffset;
|
||||||
size_t byteStride;
|
|
||||||
int componentType; // (required) One of TINYGLTF_COMPONENT_TYPE_***
|
int componentType; // (required) One of TINYGLTF_COMPONENT_TYPE_***
|
||||||
size_t count; // required
|
size_t count; // required
|
||||||
int type; // (required) One of TINYGLTF_TYPE_*** ..
|
int type; // (required) One of TINYGLTF_TYPE_*** ..
|
||||||
@ -1654,9 +1653,6 @@ static bool ParseAccessor(Accessor *accessor, std::string *err,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
double byteStride = 0.0;
|
|
||||||
ParseNumberProperty(&byteStride, err, o, "byteStride", false);
|
|
||||||
|
|
||||||
ParseStringProperty(&accessor->name, err, o, "name", false);
|
ParseStringProperty(&accessor->name, err, o, "name", false);
|
||||||
|
|
||||||
accessor->minValues.clear();
|
accessor->minValues.clear();
|
||||||
@ -1674,7 +1670,6 @@ static bool ParseAccessor(Accessor *accessor, std::string *err,
|
|||||||
accessor->count = static_cast<size_t>(count);
|
accessor->count = static_cast<size_t>(count);
|
||||||
accessor->bufferView = static_cast<int>(bufferView);
|
accessor->bufferView = static_cast<int>(bufferView);
|
||||||
accessor->byteOffset = static_cast<size_t>(byteOffset);
|
accessor->byteOffset = static_cast<size_t>(byteOffset);
|
||||||
accessor->byteStride = static_cast<size_t>(byteStride);
|
|
||||||
|
|
||||||
{
|
{
|
||||||
int comp = static_cast<int>(componentType);
|
int comp = static_cast<int>(componentType);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user