Skip to content

Commit 18bb83f

Browse files
committed
py::init Ctor experiment.
1 parent 88f0fa3 commit 18bb83f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/bindings.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ PYBIND11_MODULE(tinyobjloader, tobj_module)
3535
tobj_module.doc() = "Python bindings for TinyObjLoader.";
3636

3737
// register struct
38-
py::class_<attrib_t>(tobj_module, "Attrib");
38+
py::class_<attrib_t>(tobj_module, "Attrib")
39+
.def(py::init<>());
3940
py::class_<shape_t>(tobj_module, "Shape");
4041
py::class_<material_t>(tobj_module, "Material");
4142

0 commit comments

Comments
 (0)