blob: b7b10dae352b528db80610914daebe914fa86e1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
}
|