From 546aef632811cc4e9b19544afdfa2f25a6505c44 Mon Sep 17 00:00:00 2001 From: Aymeric Dujardin Date: Mon, 2 Oct 2017 19:45:34 +0200 Subject: [PATCH] Fix #7 Compilation issue Tegra --- pyzed/mesh.pxd | 2 +- pyzed/mesh.pyx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyzed/mesh.pxd b/pyzed/mesh.pxd index 9a83f56..f4a9f9b 100644 --- a/pyzed/mesh.pxd +++ b/pyzed/mesh.pxd @@ -45,7 +45,7 @@ cdef extern from "sl/Mesh.hpp" namespace "sl": MESH_TEXTURE_LAST - cdef enum FILTER 'sl::MeshFilterParameters::FILTER': + ctypedef enum FILTER 'sl::MeshFilterParameters::FILTER': FILTER_LOW 'sl::MeshFilterParameters::FILTER::FILTER_LOW' FILTER_MEDIUM 'sl::MeshFilterParameters::FILTER::FILTER_MEDIUM' FILTER_HIGH 'sl::MeshFilterParameters::FILTER::FILTER_HIGH' diff --git a/pyzed/mesh.pyx b/pyzed/mesh.pyx index dd74e59..8672944 100644 --- a/pyzed/mesh.pyx +++ b/pyzed/mesh.pyx @@ -51,8 +51,8 @@ cdef class PyMeshFilterParameters: cdef MeshFilterParameters* meshFilter cdef FILTER filter def __cinit__(self): - self.filter = FILTER_LOW - self.meshFilter = new MeshFilterParameters(FILTER_LOW) + self.filter = PyFILTER.PyFILTER_LOW + self.meshFilter = new MeshFilterParameters(PyFILTER.PyFILTER_LOW) def set(self, filter=PyFILTER.PyFILTER_LOW): if isinstance(filter, PyFILTER):