]> git.localhorst.tv Git - blank.git/blobdiff - src/model/shape.cpp
some annotations
[blank.git] / src / model / shape.cpp
index 66eb25e99550d9a425701236eaa19cef264b1975..a5e728a398777d744935ee5a6c2f3e2863c12fff 100644 (file)
@@ -108,7 +108,7 @@ void Shape::Read(TokenStreamReader &in) {
 
                } else {
                        // try to skip, might fail though
-                       while (in.Peek().type != Token::SEMICOLON) {
+                       while (in.HasMore() && in.Peek().type != Token::SEMICOLON) {
                                in.Next();
                        }
                }
@@ -187,7 +187,7 @@ size_t Shape::OutlineIndexCount() const noexcept {
        }
 }
 
-void Shape::Outline(OutlineMesh::Buffer &out) const {
+void Shape::Outline(PrimitiveMesh::Buffer &out) const {
        if (bounds) {
                bounds->Outline(out);
        }