From bbdadcba8a998a4c2517edc7e95024a6784420f8 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Fri, 28 Feb 2020 23:12:22 -0400 Subject: [PATCH] Fix build --- src/modules/graphics/Mesh.cpp | 5 +++++ src/modules/graphics/Mesh.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/graphics/Mesh.cpp b/src/modules/graphics/Mesh.cpp index b39b5388f..816493361 100644 --- a/src/modules/graphics/Mesh.cpp +++ b/src/modules/graphics/Mesh.cpp @@ -335,6 +335,11 @@ bool Mesh::detachAttribute(const std::string &name) return true; } +const std::vector &Mesh::getAttachedAttributes() const +{ + return attachedAttributes; +} + void *Mesh::mapVertexData() { return vertexBuffer.get() != nullptr ? vertexBuffer->map() : nullptr; diff --git a/src/modules/graphics/Mesh.h b/src/modules/graphics/Mesh.h index 83165adf4..187f0bc0c 100644 --- a/src/modules/graphics/Mesh.h +++ b/src/modules/graphics/Mesh.h @@ -114,7 +114,7 @@ public: **/ void attachAttribute(const std::string &name, Buffer *buffer, const std::string &attachname, AttributeStep step = STEP_PER_VERTEX); bool detachAttribute(const std::string &name); - const std::vector &getAttachedAttributes(); + const std::vector &getAttachedAttributes() const; void *mapVertexData(); void unmapVertexData(size_t modifiedoffset = 0, size_t modifiedsize = -1);