summaryrefslogtreecommitdiff
path: root/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'main.h')
-rw-r--r--main.h14
1 files changed, 8 insertions, 6 deletions
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);
};