Chore: Removed some unused code

This commit is contained in:
Aria Minaei 2021-06-29 15:08:02 +02:00
parent 040317f53b
commit 02d5f6c9c4
3 changed files with 8 additions and 63 deletions

View file

@ -36,7 +36,6 @@ const ProxyManager: VFC<ProxyManagerProps> = ({orbitControlsRef}) => {
transformControlsMode,
transformControlsSpace,
viewportShading,
setEditableTransform,
sheetObjects,
] = useEditorStore(
(state) => [
@ -44,7 +43,6 @@ const ProxyManager: VFC<ProxyManagerProps> = ({orbitControlsRef}) => {
state.transformControlsMode,
state.transformControlsSpace,
state.viewportShading,
state.setEditableTransform,
state.sheetObjects,
],
shallow,
@ -251,8 +249,6 @@ const ProxyManager: VFC<ProxyManagerProps> = ({orbitControlsRef}) => {
},
})
})
setEditableTransform(selected, obj.matrix.clone())
}}
onDraggingChange={(event) => (isBeingEdited.current = event.value)}
/>

View file

@ -22,7 +22,6 @@ const UI: VFC = () => {
setTransformControlsSpace,
setViewportShading,
setEditorOpen,
setEditableTransform,
] = useEditorStore(
(state) => [
state.transformControlsMode,
@ -33,7 +32,6 @@ const UI: VFC = () => {
state.setTransformControlsSpace,
state.setViewportShading,
state.setEditorOpen,
state.setEditableTransform,
],
shallow,
)
@ -117,11 +115,6 @@ const UI: VFC = () => {
proxyObject.position.copy(position)
proxyObject.updateMatrix()
setEditableTransform(
selected,
proxyObject.matrix.clone(),
)
}
}
}}