mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-13 16:49:04 +08:00
Fix inequality.
This commit is contained in:
parent
4adeae9709
commit
0a4e8b761f
@ -604,7 +604,7 @@ bool SaveAsObjMesh(const std::string &basename, const MeshPrim &mesh, const ObjE
|
|||||||
|
|
||||||
const PrimSet &prim = mesh.prims[options.primid];
|
const PrimSet &prim = mesh.prims[options.primid];
|
||||||
|
|
||||||
if (prim.texcoords.count(options.uvset)) {
|
if (!prim.texcoords.count(options.uvset)) {
|
||||||
std::cerr << "Exporting uvset " << options.uvset << " requested, but mesh( " << mesh.name << ") does not contain TEXCOORD_" << options.uvset << "\n";
|
std::cerr << "Exporting uvset " << options.uvset << " requested, but mesh( " << mesh.name << ") does not contain TEXCOORD_" << options.uvset << "\n";
|
||||||
std::cerr << "UV coord will not be exported to .obj\n";
|
std::cerr << "UV coord will not be exported to .obj\n";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user