提交 e2535c99 编写于 作者: M Matt Pharr

Add missing EndOfFiles() calls after finishing parsing.

上级 8c94c81f
......@@ -901,6 +901,8 @@ void ParseFiles(SceneRepresentation *scene, pstd::span<const std::string> filena
parse(scene, std::move(t));
}
}
scene->EndOfFiles();
}
void ParseString(SceneRepresentation *scene, std::string str) {
......@@ -911,6 +913,8 @@ void ParseString(SceneRepresentation *scene, std::string str) {
if (!t)
return;
parse(scene, std::move(t));
scene->EndOfFiles();
}
} // namespace pbrt
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册