diff --git a/src/main/java/mchorse/aperture/client/gui/panels/modifiers/GuiAbstractModifierPanel.java b/src/main/java/mchorse/aperture/client/gui/panels/modifiers/GuiAbstractModifierPanel.java index f2e56e7f..9cb5c5ad 100644 --- a/src/main/java/mchorse/aperture/client/gui/panels/modifiers/GuiAbstractModifierPanel.java +++ b/src/main/java/mchorse/aperture/client/gui/panels/modifiers/GuiAbstractModifierPanel.java @@ -122,6 +122,7 @@ private void toggleEnvelopes() } this.parent.resize(); + this.envelopes.wasToggled(); } private void updateEnable() diff --git a/src/main/java/mchorse/aperture/client/gui/panels/modifiers/widgets/GuiEnvelope.java b/src/main/java/mchorse/aperture/client/gui/panels/modifiers/widgets/GuiEnvelope.java index d0576a44..b4fdc9c9 100644 --- a/src/main/java/mchorse/aperture/client/gui/panels/modifiers/widgets/GuiEnvelope.java +++ b/src/main/java/mchorse/aperture/client/gui/panels/modifiers/widgets/GuiEnvelope.java @@ -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; @@ -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();