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"); }