From 4d5946224b938ce05325ff711ed568e95531d3aa Mon Sep 17 00:00:00 2001 From: Paul Gessinger Date: Wed, 9 Oct 2024 17:37:30 +0200 Subject: [PATCH] refactor: Expose IMaterialDecorator::decorate to python --- Examples/Python/src/Material.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Examples/Python/src/Material.cpp b/Examples/Python/src/Material.cpp index 5bc5aa6a1f3..6855fdc1737 100644 --- a/Examples/Python/src/Material.cpp +++ b/Examples/Python/src/Material.cpp @@ -81,7 +81,9 @@ void addMaterial(Context& ctx) { { py::class_>(m, - "IMaterialDecorator"); + "IMaterialDecorator") + .def("decorate", py::overload_cast( + &Acts::IMaterialDecorator::decorate, py::const_)); } {