mirror of
https://github.com/yokemura/Magical8bitPlug2.git
synced 2025-07-17 11:04:16 -04:00
Fixed envelope main section empty error
This commit is contained in:
@ -438,9 +438,6 @@ FrameSequence FrameSequenceParser::parse (const String& input,
|
||||
{
|
||||
return fs;
|
||||
}
|
||||
if (sequence.size() == 0) {
|
||||
*error = kParseWarningPreRepeatSegmentEmpty;
|
||||
}
|
||||
|
||||
fs.sequence = sequence;
|
||||
fs.sequence.reserve (1000);
|
||||
@ -470,6 +467,10 @@ FrameSequence FrameSequenceParser::parse (const String& input,
|
||||
// Set repeatEndIndex according to current working frameSequence length
|
||||
fs.releaseSequenceStartIndex = (int)fs.sequence.size();
|
||||
}
|
||||
|
||||
if (fs.sequence.size() == 0) {
|
||||
*error = kParseErrorPreReleaseSegmentEmpty;
|
||||
}
|
||||
|
||||
if (hasRelease) // If release exists:
|
||||
{
|
||||
|
Reference in New Issue
Block a user