mirror of https://github.com/CGAL/cgal
Fix plugin
This commit is contained in:
parent
92dc53c58a
commit
a9a60b5a00
|
|
@ -7,6 +7,8 @@
|
||||||
#include <CGAL/Three/CGAL_Lab_io_plugin_interface.h>
|
#include <CGAL/Three/CGAL_Lab_io_plugin_interface.h>
|
||||||
#include <CGAL/Surface_mesh/IO/PLY.h>
|
#include <CGAL/Surface_mesh/IO/PLY.h>
|
||||||
#include <CGAL/Three/Three.h>
|
#include <CGAL/Three/Three.h>
|
||||||
|
#include <CGAL/use.h>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
#include <QInputDialog>
|
#include <QInputDialog>
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
|
|
@ -132,8 +134,10 @@ load(QFileInfo fileinfo, bool& ok, bool add_to_scene) {
|
||||||
std::vector<CGAL::IO::Color> fcolors;
|
std::vector<CGAL::IO::Color> fcolors;
|
||||||
std::vector<CGAL::IO::Color> vcolors;
|
std::vector<CGAL::IO::Color> vcolors;
|
||||||
|
|
||||||
if (!(CGAL::IO::read_PLY (in, points, polygons, fcolors, vcolors)))
|
std::string unused_comment;
|
||||||
|
if (!(CGAL::IO::read_PLY (in, points, polygons, unused_comment, vcolors)))
|
||||||
{
|
{
|
||||||
|
CGAL_USE(unused_comment);
|
||||||
QApplication::restoreOverrideCursor();
|
QApplication::restoreOverrideCursor();
|
||||||
ok = false;
|
ok = false;
|
||||||
return QList<Scene_item*>();
|
return QList<Scene_item*>();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue