Skip to content

Commit

Permalink
Fix dynamic root transformation edge cases
Browse files Browse the repository at this point in the history
adeira-source-id: a29537c208b69d920357fbca260a014502a51ced
  • Loading branch information
itsdouges authored and triplex-bot committed Dec 26, 2024
1 parent 56a1b71 commit 7ad2b14
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
8 changes: 4 additions & 4 deletions examples/test-fixture/src/selection-edge-case.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
*/
import { type ReactNode } from "react";

function ContextProvider({ children }: { children: ReactNode }) {
return children;
}

export function UnknownCustomComponentResolvedHostElements() {
return (
<>
Expand All @@ -21,3 +17,7 @@ export function UnknownCustomComponentResolvedHostElements() {
</>
);
}

function ContextProvider({ children }: { children: ReactNode }) {
return children;
}
11 changes: 2 additions & 9 deletions examples/test-fixture/src/zcamera.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,11 @@
import { PerspectiveCamera } from "@react-three/drei";
import Box from "./geometry/box";

/**
* Copyright (c) Michael Dougall. All rights reserved.
*
* This source code is licensed under the GPL-3.0 license found in the LICENSE
* file in the root directory of this source tree.
*/

export function Camera() {
return (
<>
<PerspectiveCamera position={[0, 0.72, 11.34]} />
<Box position={[-0.08, 18.46, 64.84]} scale={0.1} />
<PerspectiveCamera position={[0, 0, 0.15]} />
<Box scale={0.1} />
</>
);
}

0 comments on commit 7ad2b14

Please sign in to comment.