From 432d424a7763080852a21f28f81181a5467a2570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 16 Sep 2019 20:31:52 +0200 Subject: [PATCH] python: make conversion from a mutable image view implicit. --- src/python/magnum/magnum.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/python/magnum/magnum.cpp b/src/python/magnum/magnum.cpp index 29d3a93..d04e455 100644 --- a/src/python/magnum/magnum.cpp +++ b/src/python/magnum/magnum.cpp @@ -113,6 +113,8 @@ template void imageView(py::class_>& c) { } template void imageViewFromMutable(py::class_>& c) { + py::implicitly_convertible, T>(); + c .def(py::init([](const BasicMutableImageView& other) { return pyImageViewHolder(BasicImageView(other), pyObjectHolderFor(other).owner);