From 4d92ad1932d3ccdb2c1011ab6f6c823282ffe4d9 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Mon, 13 Jun 2022 15:01:25 +0200 Subject: [PATCH] Also highlight sheet objects --- .../DopeSheet/Left/usePropHighlightMouseEnter.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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() {