X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fio%2Fsg_binobj.cxx;h=54f3b8debf5c3d7ec00f13b93f6e14b5b7f3874b;hb=09b0dd2b2d7d934c1d4059cb2cbd3b4fcbb7872f;hp=e01a52865f0f71188ab13dfde738e6eb7c858c0b;hpb=e4e31be7d43569a92a5d9fa7e784381b66cbd95a;p=simgear.git diff --git a/simgear/io/sg_binobj.cxx b/simgear/io/sg_binobj.cxx index e01a5286..54f3b8de 100644 --- a/simgear/io/sg_binobj.cxx +++ b/simgear/io/sg_binobj.cxx @@ -752,7 +752,9 @@ bool SGBinObject::write_bin_file(const SGPath& file) cout << "tex coords = " << texcoords.size() << endl; version = 10; - if (wgs84_nodes.size() < 0xffff) { + if ((wgs84_nodes.size() < 0xffff) && + (normals.size() < 0xffff) && + (texcoords.size() < 0xffff)) { version = 7; // use smaller indices if possible }