From eaab905a6a3779dd00dece093f3f05bf931a18d9 Mon Sep 17 00:00:00 2001 From: Eric Brosseau Date: Wed, 4 Dec 2024 11:32:19 -0500 Subject: [PATCH 1/2] linter issue --- src/MaxUsd/MappedAttributeBuilder.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/MaxUsd/MappedAttributeBuilder.cpp b/src/MaxUsd/MappedAttributeBuilder.cpp index eae3e0c..7377f0d 100644 --- a/src/MaxUsd/MappedAttributeBuilder.cpp +++ b/src/MaxUsd/MappedAttributeBuilder.cpp @@ -70,13 +70,14 @@ class FloatNArray case 1: return attribute.Set(*floatArray, timeCode); case 2: return attribute.Set(*float2Array, timeCode); case 3: return attribute.Set(*float3Array, timeCode); - } + } return false; } void Set(size_t index, const Point3& p) { - switch (dimension) { + switch (dimension) + { case 1: (*floatArray)[index] = p.x; break; case 2: (*float2Array)[index] = pxr::GfVec2f(p.x, p.y); break; case 3: (*float3Array)[index] = pxr::GfVec3f(p.x, p.y, p.z); break; From 2706addaf8d45863b9ccd2677f4af9ea044cfc9b Mon Sep 17 00:00:00 2001 From: Eric Brosseau <158092945+brossee-adsk@users.noreply.github.com> Date: Wed, 4 Dec 2024 13:47:14 -0500 Subject: [PATCH 2/2] Update MappedAttributeBuilder.cpp --- src/MaxUsd/MappedAttributeBuilder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MaxUsd/MappedAttributeBuilder.cpp b/src/MaxUsd/MappedAttributeBuilder.cpp index 7377f0d..4e4ff1f 100644 --- a/src/MaxUsd/MappedAttributeBuilder.cpp +++ b/src/MaxUsd/MappedAttributeBuilder.cpp @@ -47,7 +47,7 @@ namespace MAXUSD_NS_DEF { class FloatNArray { - size_t dimension; + size_t dimension; std::unique_ptr floatArray; std::unique_ptr float2Array; std::unique_ptr float3Array; @@ -415,4 +415,4 @@ bool MappedAttributeBuilder::PopulateAttribute( return values.AssignToAttribute(attribute, timeCode); } -} // namespace MAXUSD_NS_DEF \ No newline at end of file +} // namespace MAXUSD_NS_DEF