From 54796a74b7d2e8019885eaa73cd7bde2070a03b8 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 19 Jul 2014 21:12:45 -0700 Subject: [PATCH] Notify end-of-section after camera stuff --- src/yaml/cameraParser.cc | 3 +++ src/yaml/sceneParser.cc | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/src/yaml/cameraParser.cc b/src/yaml/cameraParser.cc index 298a1f0..6e2b925 100644 --- a/src/yaml/cameraParser.cc +++ b/src/yaml/cameraParser.cc @@ -159,6 +159,9 @@ CameraParser::HandleTypeEvent(yaml_event_t& event) else { assert(false); } + + mSection = NoSection; + SetShouldExpectKey(true); } diff --git a/src/yaml/sceneParser.cc b/src/yaml/sceneParser.cc index 611aa92..e94199b 100644 --- a/src/yaml/sceneParser.cc +++ b/src/yaml/sceneParser.cc @@ -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); }