mirror of
https://github.com/leozide/leocad
synced 2024-12-26 21:58:44 +01:00
Fix incorrect control points of second and later synthesized pieces.
When a model that was not create by LeoCAD contains two different pieces that are handled by lcSynth, then a set of default control points is generated for the first piece. When the following synthesized pieces are loaded, this set of control points is reused for the other pieces. But the values generated for the first piece may not be a suitable default for the subsequent pieces. Clear the control points after they have been applied to a piece so that later pieces receive a new set of defaults.
This commit is contained in:
parent
649ecf5c1e
commit
57edf44020
1 changed files with 1 additions and 0 deletions
|
@ -659,6 +659,7 @@ void lcModel::LoadLDraw(QIODevice& Device, Project* Project)
|
|||
Piece->SetColorCode(ColorCode);
|
||||
Piece->VerifyControlPoints(ControlPoints);
|
||||
Piece->SetControlPoints(ControlPoints);
|
||||
ControlPoints.RemoveAll();
|
||||
|
||||
if (Piece->mPieceInfo->IsModel() && Piece->mPieceInfo->GetModel()->IncludesModel(this))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue