Skip to content

Commit

Permalink
Fix keyframe modifier GUI infinitely unzoomed
Browse files Browse the repository at this point in the history
  • Loading branch information
mchorse committed Oct 18, 2020
1 parent f9389d9 commit 01d945f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ private void toggleEnvelopes()
}

this.parent.resize();
this.envelopes.wasToggled();
}

private void updateEnable()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package mchorse.aperture.client.gui.panels.modifiers.widgets;

import mchorse.aperture.camera.fixtures.AbstractFixture;
import mchorse.aperture.camera.smooth.Envelope;
import mchorse.aperture.client.gui.panels.modifiers.GuiAbstractModifierPanel;
import mchorse.aperture.client.gui.utils.GuiCameraEditorKeyframesGraphEditor;
Expand Down Expand Up @@ -162,6 +161,11 @@ public void initiate()
this.channel.graph.resetView();
}

public void wasToggled()
{
this.channel.graph.resetView();
}

public void fillData()
{
Envelope envelope = this.get();
Expand Down

0 comments on commit 01d945f

Please sign in to comment.