WIP: Upgrade to THREE.r155 - Fix the bug with TransformControls
Prior to this, any change caused by TransformControls would cause the SnapshotEditor's frameloop to halt
This commit is contained in:
parent
872b2f741f
commit
487573424c
1 changed files with 2 additions and 2 deletions
|
@ -49,8 +49,8 @@ const TransformControls = forwardRef(
|
|||
}, [object, controls])
|
||||
|
||||
useEffect(() => {
|
||||
controls?.addEventListener?.('change', invalidate)
|
||||
return () => controls?.removeEventListener?.('change', invalidate)
|
||||
controls?.addEventListener?.('change', () => invalidate())
|
||||
return () => controls?.removeEventListener?.('change', () => invalidate())
|
||||
}, [controls, invalidate])
|
||||
|
||||
useEffect(() => {
|
||||
|
|
Loading…
Reference in a new issue