From 36a51c19b411206213b27e30106fff161251b652 Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Sun, 27 Nov 2022 11:45:11 -0500 Subject: graph fixes --- main.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'main.h') diff --git a/main.h b/main.h index b2f2ed3..3b9cd38 100644 --- a/main.h +++ b/main.h @@ -80,7 +80,7 @@ struct bezier_point { uint8 Occupied; v2 Pos[3]; interpolation_type Type; - uint8 IsSelected; + bool32 IsSelected; uint8 PointSelect[3]; uint8 Color; }; @@ -94,10 +94,7 @@ enum selection_type { selection_none, selection_layer, - selection_effect, - selection_keyframe, - selection_maskpoint, - selection_source + selection_keyframe }; struct clipboard_channel { @@ -366,7 +363,11 @@ struct project_state uint64 ClipboardSize; int16 MostRecentlySelectedLayer = -1; - // selection_type RecentSelectionType = selection_none; + + // NOTE(fox): Try to use this only where you actually need it (the + // ambiguous case of copying keyframes versus layers), since this state + // transfer will get buggy if you expand it to everything. + selection_type RecentSelectionType = selection_none; interact_type Interact_Active; int32 Interact_Modifier; @@ -400,6 +401,7 @@ struct project_state bool32 BoxSelect; focused_window FocusedWindow; // Convenience for adding window-specific hotkeys. + bool32 SetFocus; v2 TempZoomRatio = V2(1, 1); }; -- cgit v1.2.3