Bug fixes

This commit is contained in:
AbstractConcept 2022-09-26 00:50:26 -05:00
parent 7e1680a7fb
commit 73f7e32e0c
69 changed files with 107 additions and 91 deletions

View file

@ -107,15 +107,13 @@ namespace RimWorldAnimationStudio
AnimationController.Instance.stageTick = keyframe.atTick.Value;
Workspace.actorID = actorID;
Workspace.keyframeID = keyframeID;
if (keyframe.atTick == 1)
{ return; }
interactable = true;
}
public override void OnDrag(PointerEventData eventData)
{
if (keyframe.atTick == 1)
{ value = 1; return; }
base.OnDrag(eventData);
AnimationController.Instance.stageTick = keyframe.atTick.Value;
@ -124,7 +122,8 @@ namespace RimWorldAnimationStudio
public void OnEndDrag(PointerEventData eventData)
{
interactable = false;
if (keyframe.atTick == 1)
{ value = 1; return; }
Workspace.Instance.RecordEvent("Keyframe tick");
}