Generate new uuid for a piece duplicate.

This commit is contained in:
Roman Telezhynskyi 2020-11-20 20:39:42 +02:00
parent 435122de92
commit d8c1c8e4d4

View File

@ -204,6 +204,7 @@ VToolSeamAllowance *VToolSeamAllowance::Duplicate(VToolSeamAllowanceInitData &in
dupDetail.SetInternalPaths(DuplicateInternalPaths(initData.detail.GetInternalPaths(), initData));
dupDetail.SetPins(DuplicatePins(initData.detail.GetPins(), initData));
dupDetail.SetPlaceLabels(DuplicatePlaceLabels(initData.detail.GetPlaceLabels(), initData));
dupDetail.SetUUID(QUuid::createUuid());
initData.detail = dupDetail;
return VToolSeamAllowance::Create(initData);