From d0410bddcd7ea43c51b6bf2442a99e58710e70eb Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Mon, 27 Feb 2023 19:42:48 -0500 Subject: four duplicate layer types! --- src/include/all.h | 2 +- src/include/main.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/all.h b/src/include/all.h index 603ba1d..8182b26 100644 --- a/src/include/all.h +++ b/src/include/all.h @@ -136,7 +136,7 @@ Property_IsGraphSelected(memory *Memory, uint16 *Block_Bezier_Index, uint16 *Arr static void Project_Layer_Duplicate(project_data *File, project_state *State, memory *Memory, - sorted_comp_array *SortedCompArray, sorted_layer_array *SortedLayerArray, v2 Offset, bool32 FakeOnly, bool32 NewPrecomp); + sorted_comp_array *SortedCompArray, sorted_layer_array *SortedLayerArray, v2 Offset, bool32 NewPrecomp); static void Project_ShapeLayer_New(project_data *File, project_state *State, memory *Memory); diff --git a/src/include/main.h b/src/include/main.h index 68df39d..8debbb0 100644 --- a/src/include/main.h +++ b/src/include/main.h @@ -480,6 +480,12 @@ enum imgui_popups popup_keybinds }; +enum option_sortflag +{ + sortflag_up = 1 << 0, + sortflag_furthest = 1 << 1 +}; + struct project_state { bool32 UpdateKeyframes = 0; @@ -488,6 +494,7 @@ struct project_state bool32 DebugDisableCache = 1; // TODO(fox): Group inconsequential state UI into one thing? + bool32 DuplicateMode = sortflag_furthest | sortflag_up; bool32 ShapeMode = 0; bool32 ViewportEnabled = 0; bool32 SelectionMode = 1; -- cgit v1.2.3