diff options
author | Fox Caminiti <fox@foxcam.net> | 2022-11-27 11:45:11 -0500 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2022-11-27 11:45:11 -0500 |
commit | 36a51c19b411206213b27e30106fff161251b652 (patch) | |
tree | 14c4611b61fd9a48d26d543db3c5196f79ef7654 /main.h | |
parent | c5a60e71f9ed869467e2090f4b343641b021386a (diff) |
graph fixes
Diffstat (limited to 'main.h')
-rw-r--r-- | main.h | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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); }; |