mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-07-06 07:25:11 +08:00
Remove GL_TRINANGLES restriction for mode
in primitive
parameter.
This commit is contained in:
parent
7680abf54d
commit
a5e63705a3
@ -1697,14 +1697,6 @@ static bool ParsePrimitive(Primitive *primitive, std::string *err,
|
|||||||
ParseNumberProperty(&mode, err, o, "mode", false);
|
ParseNumberProperty(&mode, err, o, "mode", false);
|
||||||
|
|
||||||
int primMode = static_cast<int>(mode);
|
int primMode = static_cast<int>(mode);
|
||||||
if (primMode != TINYGLTF_MODE_TRIANGLES) {
|
|
||||||
if (err) {
|
|
||||||
(*err) +=
|
|
||||||
"Currently TinyGLTFLoader doesn not support primitive mode other \n"
|
|
||||||
"than TRIANGLES.\n";
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
primitive->mode = primMode;
|
primitive->mode = primMode;
|
||||||
|
|
||||||
primitive->indices = "";
|
primitive->indices = "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user