Skip to content

Commit

Permalink
ISSUE #682 Turned constants into defines
Browse files Browse the repository at this point in the history
  • Loading branch information
sebjf committed May 29, 2024
1 parent 31b3503 commit 925587e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
12 changes: 6 additions & 6 deletions bouncer/src/repo/core/model/bson/repo_bson_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down
8 changes: 7 additions & 1 deletion bouncer/src/repo/core/model/repo_model_global.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
#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"

0 comments on commit 925587e

Please sign in to comment.