Initialize a new Sphere in ObjectParser and add it to the scene

This commit is contained in:
Eryn Wells 2014-07-19 15:41:45 -07:00
parent 0a14661da8
commit 5f02407b06

View file

@ -21,8 +21,11 @@ namespace yaml {
ObjectParser::ObjectParser(Scene& scene,
ParserStack& parsers)
: ScalarMappingParser(scene, parsers),
mObject(new Sphere()),
mSection(NoSection)
{ }
{
GetScene().add_shape(mObject);
}
ObjectParser::~ObjectParser()