Skip to content

Commit aa4dabe

Browse files
committed
Describe default behavior of mtl_basedir.
1 parent 9868630 commit aa4dabe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tiny_obj_loader.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ class MaterialStreamReader : public MaterialReader {
296296
/// Returns true when loading .obj become success.
297297
/// Returns warning and error message into `err`
298298
/// 'mtl_basedir' is optional, and used for base directory for .mtl file.
299+
/// In default(`NULL'), .mtl file is searched from an application's working directory.
299300
/// 'triangulate' is optional, and used whether triangulate polygon face in .obj
300301
/// or not.
301302
bool LoadObj(attrib_t *attrib, std::vector<shape_t> *shapes,

0 commit comments

Comments
 (0)