Skip to content

Commit

Permalink
Fix camera resetting when shapes change
Browse files Browse the repository at this point in the history
  • Loading branch information
North101 committed Jan 15, 2025
1 parent a768da9 commit 8c54268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/studio/src/Stage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function Stage({ children, center, ...props }) {

set({ radius: sphere.radius, previousRadius: radius, top: box3.max.z });
//eslint-disable-next-line react-hooks/exhaustive-deps
}, [children]);
}, []);

React.useLayoutEffect(() => {
if (previousRadius && previousRadius !== radius) {
Expand Down

0 comments on commit 8c54268

Please sign in to comment.