Skip to content

Commit cfef261

Browse files
committed
pyluxcore: Add copy constructor for Properties class
1 parent b1c9159 commit cfef261

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/pyluxcore/pyluxcore.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2283,6 +2283,12 @@ PYBIND11_MODULE(pyluxcore, m) {
22832283
{ return std::make_unique<luxrays::Properties>(s); }
22842284
)
22852285
)
2286+
.def(
2287+
py::init(
2288+
[](const Properties& props) -> std::unique_ptr<luxrays::Properties>
2289+
{ return props.Clone(); }
2290+
)
2291+
)
22862292

22872293
// Required because Properties::Set is overloaded
22882294
.def<luxrays::Properties &(luxrays::Properties::*)(PropertyRPtr)>

0 commit comments

Comments
 (0)