mirror of
https://github.com/gwm17/catima.git
synced 2024-11-22 18:28:51 -05:00
python add overload fix
This commit is contained in:
parent
77ab424c15
commit
fbe4fffecd
|
@ -146,7 +146,8 @@ PYBIND11_MODULE(pycatima,m){
|
|||
|
||||
py::class_<Layers>(m,"Layers")
|
||||
.def(py::init<>(),"constructor")
|
||||
.def("add",&Layers::add)
|
||||
.def("add",py::overload_cast<Material>(&Layers::add))
|
||||
.def("add_layers",py::overload_cast<const Layers&>(&Layers::add))
|
||||
.def("num",&Layers::num)
|
||||
// .def("__getitem__",&Layers::operator[], py::is_operator())
|
||||
.def("__getitem__",[](Layers &r, int i)->Material*
|
||||
|
|
Loading…
Reference in New Issue
Block a user