diff --git a/src/core/Instances.tsx b/src/core/Instances.tsx index 61c54f9ce..6abf3fcf2 100644 --- a/src/core/Instances.tsx +++ b/src/core/Instances.tsx @@ -186,6 +186,11 @@ export const Instances: ForwardRefComponent } iterations++ } + + if (frames === Infinity || iterations === frames) { + if (parentRef.current.boundingBox) parentRef.current.computeBoundingBox() + if (parentRef.current.boundingSphere) parentRef.current.computeBoundingSphere() + } }) const api = React.useMemo(