Skip to content

Commit

Permalink
Merge pull request #967 from cambrialas/Issue_lcPiece_mTrainTrackConn…
Browse files Browse the repository at this point in the history
…ections_not_set

Fixes 'Crash when dropping a new train track piece'
  • Loading branch information
leozide authored Feb 3, 2025
2 parents d31b9d9 + 9c03c24 commit 09b6bd2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/lc_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4436,9 +4436,12 @@ void lcModel::InsertPieceToolClicked(PieceInfo* Info, const lcMatrix44& WorldMat
Piece->UpdatePosition(mCurrentStep);
AddPiece(Piece);


gMainWindow->UpdateTimeline(false, false);
ClearSelectionAndSetFocus(Piece, LC_PIECE_SECTION_POSITION, false);

UpdateTrainTrackConnections(Piece);

SaveCheckpoint(tr("Insert"));
}

Expand Down

0 comments on commit 09b6bd2

Please sign in to comment.