Update piece info on submodel edit end. Fixes #222

This commit is contained in:
Thomas Cujé 2019-03-10 11:11:01 +01:00 committed by Leonardo Zide
parent f99e6d7583
commit df73a3569c

View file

@ -2707,7 +2707,14 @@ void lcMainWindow::HandleCommand(lcCommandId CommandId)
case LC_PIECE_EDIT_END_SUBMODEL:
if (ActiveView)
{
ActiveView->SetTopSubmodelActive();
if (ActiveModel)
{
lcArray<lcModel*> UpdatedModels;
ActiveModel->UpdatePieceInfo(UpdatedModels);
}
}
break;
case LC_PIECE_EDIT_SELECTED_SUBMODEL: