diff --git a/src/libpython/core.cpp b/src/libpython/core.cpp index 561398ba..12ae33fc 100644 --- a/src/libpython/core.cpp +++ b/src/libpython/core.cpp @@ -928,6 +928,7 @@ static NativeBuffer bitmap_getNativeBuffer(Bitmap *bitmap) { BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(fromLinearRGB_overloads, fromLinearRGB, 3, 4) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(fromXYZ_overloads, fromXYZ, 3, 4) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(fromIPT_overloads, fromIPT, 3, 4) +BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(reset_overloads, reset, 0, 1) #define IMPLEMENT_ANIMATION_TRACK(Name) \ BP_CLASS(Name, AbstractAnimationTrack, (bp::init())) \ @@ -2238,7 +2239,7 @@ void export_core() { BP_CLASS(Timer, Object, bp::init >()) .def("start", &Timer::start) - .def("reset", &Timer::reset) + .def("reset", &Timer::reset, reset_overloads()) .def("stop", &Timer::stop) .def("lap", &Timer::lap) .def("getNanoseconds", &Timer::getNanoseconds)