From 6adc330e391a4b228422160d52df084c3b8071dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 8 Jun 2019 12:53:17 +0200 Subject: [PATCH] python: minor cleanup. --- src/python/magnum/meshtools.cpp | 4 ++-- src/python/magnum/primitives.cpp | 2 +- src/python/magnum/shaders.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/python/magnum/meshtools.cpp b/src/python/magnum/meshtools.cpp index 8bd2ab5..e63dd4e 100644 --- a/src/python/magnum/meshtools.cpp +++ b/src/python/magnum/meshtools.cpp @@ -35,8 +35,8 @@ namespace magnum { namespace { void meshtools(py::module& m) { - m.import("magnum.gl"); - m.import("magnum.trade"); + py::module::import("magnum.gl"); + py::module::import("magnum.trade"); m .def("compile", [](const Trade::MeshData2D& data) { diff --git a/src/python/magnum/primitives.cpp b/src/python/magnum/primitives.cpp index 6960a52..79edce6 100644 --- a/src/python/magnum/primitives.cpp +++ b/src/python/magnum/primitives.cpp @@ -34,7 +34,7 @@ namespace magnum { namespace { void primitives(py::module& m) { - m.import("magnum.trade"); + py::module::import("magnum.trade"); py::enum_{m, "SquareTextureCoords", "Whether to generate square texture coordinates"} .value("DONT_GENERATE", Primitives::SquareTextureCoords::DontGenerate) diff --git a/src/python/magnum/shaders.cpp b/src/python/magnum/shaders.cpp index 323100f..263b057 100644 --- a/src/python/magnum/shaders.cpp +++ b/src/python/magnum/shaders.cpp @@ -61,7 +61,7 @@ template void vertexColor(NonDestructibleBase