Open AkshayshettyS opened 1 year ago
Happens to me too.
"@react-three/drei": "^9.56.27",
"@react-three/fiber": "^8.14.5",
Same here. Did you manage to fix it?
"@react-three/drei": "^9.77.4", "@react-three/fiber": "^8.13.0",
Same here. Did you manage to fix it?
"@react-three/drei": "^9.77.4", "@react-three/fiber": "^8.13.0",
No I used PivotControls instead for now.
I managed to fix it by re-adapting the Stage component and remove the Bounds Refit and Center components. https://github.com/pmndrs/drei/blob/master/src/core/Stage.tsx
three
version: 0.153.0@react-three/fiber
version: 8.13.3@react-three/drei
version: 9.77.1node
version: 16.15.1npm
(oryarn
) version: 1.22.19 (yarn)Problem description:
When I try to use TransformControls I am getting error saying "Cannot read properties of undefined (reading 'clone')". This is causing in "TransformControlsGizmo.updateMatrixWorld" of the imported "three-stdlib" file.
Relevant code:
My code:
Even assigning as object prop in TransformControls still getting the same error.
The line causing the error is
Here its not getting the color in the material causing the error. Not sure if I am doing anything wrong. Need some suggestions here.
EDIT: Upon further digging I found out that this is happening when there is a "Stage" element with "adjustCamera" value given in the Canvas. When I remove the "adjustCamera" props in Stage element everything works as expected.