summaryrefslogtreecommitdiff
path: root/ui.cpp
blob: 04b9002e9735a71b33d5698fb6240d61fad4306f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
static 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;
}