diff --git a/bouncer/src/repo/core/model/bson/repo_bson_factory.cpp b/bouncer/src/repo/core/model/bson/repo_bson_factory.cpp index 5e90c159f..5950715be 100644 --- a/bouncer/src/repo/core/model/bson/repo_bson_factory.cpp +++ b/bouncer/src/repo/core/model/bson/repo_bson_factory.cpp @@ -817,12 +817,12 @@ RepoAssets RepoBSONFactory::makeRepoBundleAssets( for (auto& meta : metadata) { RepoBSONBuilder metadataBuilder; - metadataBuilder.append("numVertices", (unsigned int)meta.numVertices); - metadataBuilder.append("numFaces", (unsigned int)meta.numFaces); - metadataBuilder.append("numUVChannels", (unsigned int)meta.numUVChannels); - metadataBuilder.append("primitive", (unsigned int)meta.primitive); - metadataBuilder.appendVector3d("min", meta.min); - metadataBuilder.appendVector3d("max", meta.max); + metadataBuilder.append(REPO_ASSETS_LABEL_NUMVERTICES, (unsigned int)meta.numVertices); + metadataBuilder.append(REPO_ASSETS_LABEL_NUMFACES, (unsigned int)meta.numFaces); + metadataBuilder.append(REPO_ASSETS_LABEL_NUMUVCHANNELS, (unsigned int)meta.numUVChannels); + metadataBuilder.append(REPO_ASSETS_LABEL_PRIMITIVE, (unsigned int)meta.primitive); + metadataBuilder.appendVector3d(REPO_ASSETS_LABEL_MIN, meta.min); + metadataBuilder.appendVector3d(REPO_ASSETS_LABEL_MIN, meta.max); metadataNodes.push_back(metadataBuilder.obj()); } diff --git a/bouncer/src/repo/core/model/repo_model_global.h b/bouncer/src/repo/core/model/repo_model_global.h index 90694845f..80663b9b1 100644 --- a/bouncer/src/repo/core/model/repo_model_global.h +++ b/bouncer/src/repo/core/model/repo_model_global.h @@ -202,4 +202,10 @@ #define REPO_ASSETS_LABEL_VRASSETS "vrAssets" #define REPO_ASSETS_LABEL_IOSASSETS "iosAssets" #define REPO_ASSETS_LABEL_ANDROIDASSETS "androidAssets" -#define REPO_ASSETS_LABEL_JSONFILES "jsonFiles" \ No newline at end of file +#define REPO_ASSETS_LABEL_JSONFILES "jsonFiles" +#define REPO_ASSETS_LABEL_NUMVERTICES "numVertices" +#define REPO_ASSETS_LABEL_NUMFACES "numFaces" +#define REPO_ASSETS_LABEL_NUMUVCHANNELS "numUVChannels" +#define REPO_ASSETS_LABEL_PRIMITIVE "primitive" +#define REPO_ASSETS_LABEL_MIN "min" +#define REPO_ASSETS_LABEL_MAX "max" \ No newline at end of file