From df73a3569c3e5e72f1dd816caa60580ef6569340 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Cuj=C3=A9?= Date: Sun, 10 Mar 2019 11:11:01 +0100 Subject: [PATCH] Update piece info on submodel edit end. Fixes #222 --- common/lc_mainwindow.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/lc_mainwindow.cpp b/common/lc_mainwindow.cpp index c3bc6967..b396ca35 100644 --- a/common/lc_mainwindow.cpp +++ b/common/lc_mainwindow.cpp @@ -2707,7 +2707,14 @@ void lcMainWindow::HandleCommand(lcCommandId CommandId) case LC_PIECE_EDIT_END_SUBMODEL: if (ActiveView) + { ActiveView->SetTopSubmodelActive(); + if (ActiveModel) + { + lcArray UpdatedModels; + ActiveModel->UpdatePieceInfo(UpdatedModels); + } + } break; case LC_PIECE_EDIT_SELECTED_SUBMODEL: