diff --git a/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Left/usePropHighlightMouseEnter.tsx b/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Left/usePropHighlightMouseEnter.tsx index 9a72ebd..6c63854 100644 --- a/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Left/usePropHighlightMouseEnter.tsx +++ b/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Left/usePropHighlightMouseEnter.tsx @@ -10,13 +10,17 @@ export function usePropHighlightMouseEnter( ) { useLayoutEffect(() => { if (!node) return - if (leaf.type !== 'propWithChildren' && leaf.type !== 'primitiveProp') + if ( + leaf.type !== 'propWithChildren' && + leaf.type !== 'primitiveProp' && + leaf.type !== 'sheetObject' + ) return let unlock: null | (() => void) = null const propAddress: PropAddress = { ...leaf.sheetObject.address, - pathToProp: leaf.pathToProp, + pathToProp: leaf.type === 'sheetObject' ? [] : leaf.pathToProp, } function onMouseEnter() {