mirror of
https://github.com/syoyo/tinygltf.git
synced 2026-07-27 08:28:53 +00:00
Remove GL_TRINANGLES restriction for mode in primitive parameter.
This commit is contained in:
@@ -1697,14 +1697,6 @@ static bool ParsePrimitive(Primitive *primitive, std::string *err,
|
||||
ParseNumberProperty(&mode, err, o, "mode", false);
|
||||
|
||||
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->indices = "";
|
||||
|
||||
Reference in New Issue
Block a user