Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
fix the white lines appearing between panels in studio (#10294)
Browse files Browse the repository at this point in the history
* fix the white lines appearing between panels in studio

* remove comments
  • Loading branch information
aditya-mitra authored May 31, 2024
1 parent c14d77c commit 21ac47c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions packages/editor/src/components/Editor2Container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Ethereal Engine. All Rights Reserved.
*/

import { PopoverState } from '@etherealengine/client-core/src/common/services/PopoverState'
import { useRemoveEngineCanvas } from '@etherealengine/client-core/src/hooks/useRemoveEngineCanvas'
import { assetPath } from '@etherealengine/common/src/schema.type.module'
import { EntityUUID } from '@etherealengine/ecs'
import { getMutableState, useHookstate, useMutableState } from '@etherealengine/hyperflux'
Expand Down Expand Up @@ -144,6 +145,8 @@ const EditorContainer = () => {
}
}, [errorState])

useRemoveEngineCanvas()

return (
<main className="pointer-events-auto">
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ const ViewportDnD = () => {
observer.observe(ref.current)
return () => {
observer.disconnect()
// const canvas = document.getElementById('engine-renderer-canvas')!
// parent.removeChild(canvas)
}
}, [ref])

Expand All @@ -93,7 +91,7 @@ const ViewportDnD = () => {
isDragging && isOver ? 'border-4' : 'border-none',
isDragging ? 'pointer-events-auto' : 'pointer-events-none'
)}
></div>
/>
)
}

Expand Down

0 comments on commit 21ac47c

Please sign in to comment.