summaryrefslogtreecommitdiff
path: root/src/include/main.h
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2022-12-18 20:00:47 -0500
committerFox Caminiti <fox@foxcam.net>2022-12-18 20:00:47 -0500
commit4854647d659f75ac6cf4575b61d1dcfd25865791 (patch)
tree3296bdfa30fa76688844755b37094753ea82d033 /src/include/main.h
parentbedd6906eabdd513042d6a178d4dc56a3a41d1d3 (diff)
lazy
Diffstat (limited to 'src/include/main.h')
-rw-r--r--src/include/main.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/main.h b/src/include/main.h
index 3c7ff83..af92e31 100644
--- a/src/include/main.h
+++ b/src/include/main.h
@@ -157,12 +157,14 @@ struct sorted_comp_array
{
uint32 LayerCount;
uint32 CurrentSortIndex; // Used intermediately in the sorting algorithm
+ real32 DisplaySize;
};
struct sorted_layer_array
{
uint16 Block_Layer_Index;
real32 SortedOffset;
+ real32 DisplayOffset;
uint16 Sorted_Effect_Index[MAX_EFFECTS];
uint16 SortedPropertyStart;
uint16 SortedKeyframeStart;
@@ -384,6 +386,12 @@ struct project_state
real32 Interact_Offset[12];
void *Interact_Address;
+ // NOTE(fox): We need to keep track of when the user changes the CurrentValue of a
+ // channel that has keyframes on it (i.e. CurrentValue will now evaluate to
+ // its previous value unless the user adds a new keyframe to the channel)
+ // so we can purge the cache if the user changes to a different frame.
+ int UncommitedKeyframe;
+
int32 Initializing = 3;
int32 MsgTime; // currently in "frames"