Skip to content

Commit

Permalink
fix: The impact of copying on the original box position
Browse files Browse the repository at this point in the history
  • Loading branch information
Original-Recipe committed Aug 30, 2024
1 parent 75af922 commit ca1f758
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,20 +171,20 @@ export const useBoxes = ({
syncAllViewPointCloudColor(EPointCloudBoxRenderTrigger.MultiPaste, newPointCloudBoxList);
};

const newPointCloudResult = [...displayPointCloudList, ...pastedBoxes];

/**
* Synchronize the values of rects in the latest 3D point cloud list
* which have a direct impact on 2D views
*/
newPointCloudResult.forEach((pointCloudBox) =>
pastedBoxes.forEach((pointCloudBox) =>
generatePointCloudBoxRects({
pointCloudBox,
mappingImgList,
imageSizes,
}),
);

const newPointCloudResult = [...displayPointCloudList, ...pastedBoxes];

updatePointCloudResult(newPointCloudResult);
}, [copiedBoxes, displayPointCloudList, i18n.language, currentData]);

Expand Down

0 comments on commit ca1f758

Please sign in to comment.