From 823e02222e7a1b17e3193f9e94447e8ebbb7db49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Wed, 2 Nov 2016 17:16:49 +0100 Subject: [PATCH] set the name of the item --- Polyhedron/demo/Polyhedron/Plugins/IO/OFF_io_plugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Polyhedron/demo/Polyhedron/Plugins/IO/OFF_io_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/IO/OFF_io_plugin.cpp index 6b92fe85bc0..39e35eb1b8e 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/IO/OFF_io_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/IO/OFF_io_plugin.cpp @@ -64,6 +64,7 @@ Polyhedron_demo_off_plugin::load_off(QFileInfo fileinfo) { { in.seekg(0); Scene_points_with_normal_item* item = new Scene_points_with_normal_item(); + item->setName(fileinfo.completeBaseName()); if (scanner.size_of_vertices()==0) return item; if(!item->read_off_point_set(in)) {