Skip to content

Commit

Permalink
feat(pointcloud): The listener of topviewEvent needs to updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerwin-L committed Sep 22, 2022
1 parent d99c635 commit e51acd6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ const PointCloudTopView: React.FC<IAnnotationStateProps> = ({ currentData }) =>
pointCloud.camera.position.set(x + offsetY, y - offsetX, z);
pointCloud.render();
});
}, [size]);
}, [size, ptCtx.topViewInstance]);

useEffect(() => {
ptCtx.topViewInstance?.pointCloudInstance?.applyZAxisPoints(zAxisLimit);
Expand Down

0 comments on commit e51acd6

Please sign in to comment.