Notify end-of-section after camera stuff
This commit is contained in:
parent
4d5796e6e7
commit
54796a74b7
2 changed files with 10 additions and 0 deletions
|
@ -159,6 +159,9 @@ CameraParser::HandleTypeEvent(yaml_event_t& event)
|
|||
else {
|
||||
assert(false);
|
||||
}
|
||||
|
||||
mSection = NoSection;
|
||||
SetShouldExpectKey(true);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue