From 1aed444318995ff39ca0319f1a096ecc8dd1b9f6 Mon Sep 17 00:00:00 2001 From: jriegel Date: Thu, 21 Aug 2014 18:17:20 +0200 Subject: [PATCH] define for PCL usage for older LibPacks --- src/Mod/Points/App/AppPointsPy.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Mod/Points/App/AppPointsPy.cpp b/src/Mod/Points/App/AppPointsPy.cpp index ce88cb258..e1ed8ca1b 100644 --- a/src/Mod/Points/App/AppPointsPy.cpp +++ b/src/Mod/Points/App/AppPointsPy.cpp @@ -35,11 +35,11 @@ #include // PCL test - -#include -#include -#include - +#ifdef HAVE_PCL +# include +# include +# include +#endif #include "Points.h" #include "PointsPy.h" @@ -73,6 +73,7 @@ open(PyObject *self, PyObject *args) pcFeature->Points.setValue( pkTemp ); } +#ifdef HAVE_PCL else if (file.hasExtension("ply")) { // create new document import @@ -90,6 +91,7 @@ open(PyObject *self, PyObject *args) pcFeature->Points.setValue( pkTemp ); } +#endif else { Py_Error(PyExc_Exception,"unknown file ending"); }