From e65e2a0950ea4dd23f0d9ac7a0a42ffc720a07e3 Mon Sep 17 00:00:00 2001 From: Sven Oesau Date: Mon, 7 Apr 2025 09:10:00 +0200 Subject: [PATCH] deleting selection item in OpenMesh plugin when there is no selection --- Lab/demo/Lab/Plugins/IO/OM_io_plugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lab/demo/Lab/Plugins/IO/OM_io_plugin.cpp b/Lab/demo/Lab/Plugins/IO/OM_io_plugin.cpp index ab81338bf06..c31787bd55b 100644 --- a/Lab/demo/Lab/Plugins/IO/OM_io_plugin.cpp +++ b/Lab/demo/Lab/Plugins/IO/OM_io_plugin.cpp @@ -124,6 +124,8 @@ load(QFileInfo fileinfo, bool& ok, bool add_to_scene){ res << item; if(!selection_item->isEmpty()) res << selection_item; + else + delete selection_item; return res; } }