A new animation is created when the previous section is complete.
That's exactly the case when a new section starts:
parser.new_section is set. But it is not the case when dealing with the
very first section, because there we have no section before which should
be added.
I suspect that the line setting back "parser.new_section = false;" after
reading the first line should have prevented the case, but that would only
work if the first section started in the first line.
If we have a layout of animation config files like the following, in which
we configure some common things for all sections, the previous solution
would not work:
Fixes #832.
A new animation is created when the previous section is complete. That's exactly the case when a new section starts: parser.new_section is set. But it is not the case when dealing with the very first section, because there we have no section before which should be added.
I suspect that the line setting back "parser.new_section = false;" after reading the first line should have prevented the case, but that would only work if the first section started in the first line. If we have a layout of animation config files like the following, in which we configure some common things for all sections, the previous solution would not work: