diff options
author | Fox Caminiti <fox@foxcam.net> | 2022-07-22 20:45:08 -0400 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2022-07-22 20:45:08 -0400 |
commit | fc8040d695644aaca4596adebeca4ea1369ef630 (patch) | |
tree | aea6979da97c43df8f03f3a2d7b421ee71bef370 /ui.cpp |
first
Diffstat (limited to 'ui.cpp')
-rw-r--r-- | ui.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -0,0 +1,17 @@ +internal void +InteractProperty(int16 Index, project_data *File, project_state *State, bool32 Ended, real32 Value, memory *Memory, cache_pool *Cache) +{ + for (int r = 0; r < State->NumberOfSelectedLayers; r++) { + keyframe *Keyframe = InsertKeyframeAtFrame(&File->LayerPTR[State->SelectedLayerIndex[r]]->Property[Index], *State, File->CurrentFrame, Memory, Cache); + Keyframe->Value.f += Value; + } + // Cache->Interact = Active; + // Cache->InteractIndex = State->SelectedLayerIndex[0]; + if (Ended) + { + State->TranslateScaleRotate = 0; + Cache->Interact = Clear; + } + State->UpdateFrame = true; + // Cache->Frame[File->CurrentFrame].Cached = false; +} |