Skip to content

Commit

Permalink
Merge pull request #589 from Original-Recipe/fix-changeAttributeIssue
Browse files Browse the repository at this point in the history
fix: Attribute switching, fixing back/side view issues
  • Loading branch information
lihqi authored Oct 17, 2024
2 parents 66f8b59 + db49d4c commit 08fde57
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,17 @@ const useUpdatePointCloudColor = (setResourceLoading: any, config: any) => {
: EPointCloudBoxRenderTrigger.Single;
// Update all view related colors first
ptCtx.syncAllViewPointCloudColor(trigger, pointCloudBoxList);
// Update the relevant content of the original point cloud again
pointCloudBoxList.forEach((selectBox) => {
/**
* Update the relevant content of the original point cloud again
* This method maintains the same judgment logic as the original topViewSlectedChanged, and only triggers an update when one box is selected
*/
if (selectedIDs && selectedIDs.length === 1) {
const newSelectedBox = pointCloudBoxList.find((item) => item.id === selectedIDs[0]);
topViewSelectedChanged({
trigger,
newSelectedBox: selectBox,
newSelectedBox,
});
});
}
mainViewInstance.generateBoxes(pointCloudBoxList);
}

Expand Down

0 comments on commit 08fde57

Please sign in to comment.