Butterchurn shouldn't cycle when loaded with inital preset (#724)

This commit is contained in:
jberg 2019-01-21 18:50:19 -08:00 committed by Jordan Eldredge
parent 2b2598329d
commit c7f7b61fef

View file

@ -30,7 +30,7 @@ class Milkdrop extends React.Component {
}
);
this.visualizer.connectAudio(this.props.analyser);
this.presetCycle = true;
this.presetCycle = !this.props.initialPreset;
if (this.props.initialPreset) {
const presetIndices = this.props.presets.addPresets(
this.props.initialPreset