Notify end-of-section after camera stuff

This commit is contained in:
Eryn Wells 2014-07-19 21:12:45 -07:00
parent 4d5796e6e7
commit 54796a74b7
2 changed files with 10 additions and 0 deletions

View file

@ -159,6 +159,9 @@ CameraParser::HandleTypeEvent(yaml_event_t& event)
else {
assert(false);
}
mSection = NoSection;
SetShouldExpectKey(true);
}

View file

@ -76,6 +76,13 @@ SceneParser::HandleCameraEvent(yaml_event_t& event)
}
GetParsers().push(new CameraParser(GetScene(), GetParsers()));
/*
* When the camera parser is done, we should be back to expecting a key for
* the Scene.
*/
mSection = NoSection;
SetShouldExpectKey(true);
}