diff options
author | noma <ma.noack.pr@gmail.com> | 2017-04-24 17:49:39 +0200 |
---|---|---|
committer | noma <ma.noack.pr@gmail.com> | 2017-04-24 17:49:39 +0200 |
commit | d5ca25881728ed6591257b530bff973e0c394e7f (patch) | |
tree | 6c5ba9dc1f9f404b77252ba0f0e72d7ed47b7414 | |
parent | b1ac3a6c7e12d0c6b5909147aee1aca7d1777154 (diff) | |
download | tinyobjloader-d5ca25881728ed6591257b530bff973e0c394e7f.tar.gz |
Renamed realValues back to flaotValues, as it is part of the external interface and renaming would break existing code.
-rw-r--r-- | tiny_obj_loader.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tiny_obj_loader.h b/tiny_obj_loader.h index 097da8d..a9bfb4f 100644 --- a/tiny_obj_loader.h +++ b/tiny_obj_loader.h @@ -195,7 +195,7 @@ typedef struct { std::string name; std::vector<int> intValues; - std::vector<real_t> realValues; + std::vector<real_t> floatValues; std::vector<std::string> stringValues; } tag_t; @@ -1680,9 +1680,9 @@ bool LoadObj(attrib_t *attrib, std::vector<shape_t> *shapes, token += strcspn(token, "/ \t\r") + 1; } - tag.realValues.resize(static_cast<size_t>(ts.num_reals)); + tag.floatValues.resize(static_cast<size_t>(ts.num_reals)); for (size_t i = 0; i < static_cast<size_t>(ts.num_reals); ++i) { - tag.realValues[i] = parseReal(&token); + tag.floatValues[i] = parseReal(&token); token += strcspn(token, "/ \t\r") + 1; } @@ -1990,9 +1990,9 @@ bool LoadObjWithCallback(std::istream &inStream, const callback_t &callback, token += strcspn(token, "/ \t\r") + 1; } - tag.realValues.resize(static_cast<size_t>(ts.num_reals)); + tag.floatValues.resize(static_cast<size_t>(ts.num_reals)); for (size_t i = 0; i < static_cast<size_t>(ts.num_reals); ++i) { - tag.realValues[i] = parseReal(&token); + tag.floatValues[i] = parseReal(&token); token += strcspn(token, "/ \t\r") + 1; } |