} else {
// try to skip, might fail though
- while (in.Peek().type != Token::SEMICOLON) {
+ while (in.HasMore() && in.Peek().type != Token::SEMICOLON) {
in.Next();
}
}
}
}
-void Shape::Outline(OutlineMesh::Buffer &out) const {
+void Shape::Outline(PrimitiveMesh::Buffer &out) const {
if (bounds) {
bounds->Outline(out);
}