kopia lustrzana https://github.com/jameshball/osci-render
woops forgot to check for nullptr
rodzic
1414186011
commit
bc908d12c9
|
@ -901,13 +901,15 @@ void OscirenderAudioProcessor::setStateInformation(const void* data, int sizeInB
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
changeCurrentFile(xml->getIntAttribute("currentFile", -1));
|
changeCurrentFile(xml->getIntAttribute("currentFile", -1));
|
||||||
|
{
|
||||||
// Get .gpla animation stuff
|
// Get .gpla animation stuff
|
||||||
auto lineArtXml = xml->getChildByName("gpla");
|
auto lineArtXml = xml->getChildByName("gpla");
|
||||||
animateLineArt = lineArtXml->getBoolAttribute("animateLineArt", false);
|
if (lineArtXml != nullptr) {
|
||||||
syncMIDIAnimation = lineArtXml->getBoolAttribute("syncMIDIAnimation", false);
|
animateLineArt = lineArtXml->getBoolAttribute("animateLineArt", false);
|
||||||
animationRate = lineArtXml->getDoubleAttribute("animationRate", 8.);
|
syncMIDIAnimation = lineArtXml->getBoolAttribute("syncMIDIAnimation", false);
|
||||||
animationOffset = lineArtXml->getIntAttribute("animationOffset", 0);
|
animationRate = lineArtXml->getDoubleAttribute("animationRate", 8.);
|
||||||
|
animationOffset = lineArtXml->getIntAttribute("animationOffset", 0);
|
||||||
|
}
|
||||||
|
|
||||||
broadcaster.sendChangeMessage();
|
broadcaster.sendChangeMessage();
|
||||||
prevMidiEnabled = !midiEnabled->getBoolValue();
|
prevMidiEnabled = !midiEnabled->getBoolValue();
|
||||||
|
|
Ładowanie…
Reference in New Issue