From 48347ea371bfde87f341296da7d1035cc65f79cf Mon Sep 17 00:00:00 2001 From: Leonardo Date: Wed, 3 Feb 2021 14:49:07 -0800 Subject: [PATCH] Ignore part settings from the previous step. Fixes #602. --- common/lc_model.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/lc_model.cpp b/common/lc_model.cpp index ec45e56a..af5564d4 100644 --- a/common/lc_model.cpp +++ b/common/lc_model.cpp @@ -531,6 +531,8 @@ void lcModel::LoadLDraw(QIODevice& Device, Project* Project) if (Token == QLatin1String("STEP")) { + delete Piece; + Piece = nullptr; CurrentStep++; mFileLines.append(OriginalLine); continue;