Merge pull request #80 from mosra/texture-name

Import texture names as well
This commit is contained in:
Syoyo Fujita 2018-07-25 13:51:41 +09:00 committed by GitHub
commit a71be9cc98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -456,6 +456,8 @@ struct Image {
};
struct Texture {
std::string name;
int sampler;
int source; // Required (not specified in the spec ?)
Value extras;
@ -2224,6 +2226,8 @@ static bool ParseTexture(Texture *texture, std::string *err, const json &o,
ParseExtensionsProperty(&texture->extensions, err, o);
ParseExtrasProperty(&texture->extras, o);
ParseStringProperty(&texture->name, err, o, "name", false);
return true;
}