Skip to content

Commit

Permalink
Remove unused variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed May 26, 2020
1 parent 1e35c09 commit 948df43
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions io/GltfWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,12 @@ void GltfWriter::write(const PointViewPtr v)
}

if (m_colorVertices) {
float colorR = v->getFieldAs<float>(Dimension::Id::Red, i) / 255.0;
float colorG = v->getFieldAs<float>(Dimension::Id::Green, i) / 255.0;
float colorB = v->getFieldAs<float>(Dimension::Id::Blue, i) / 255.0;
float colorR =
v->getFieldAs<float>(Dimension::Id::Red, i) / 255.0;
float colorG =
v->getFieldAs<float>(Dimension::Id::Green, i) / 255.0;
float colorB =
v->getFieldAs<float>(Dimension::Id::Blue, i) / 255.0;

out << colorR << colorG << colorB;
}
Expand Down Expand Up @@ -248,7 +251,6 @@ void GltfWriter::writeJsonChunk()
uint16_t normalAccessorIndex = 0;
uint16_t colorAccessorIndex = 0;
uint16_t positionAccessorIndex = 0;
uint16_t faceAccessorIndex = 0;
NL::json meshAttributes({});

// Buffer views
Expand All @@ -275,8 +277,6 @@ void GltfWriter::writeJsonChunk()
);

// Accessors
// Face index accessor
faceAccessorIndex = nextAccessorIndex++;
j["accessors"].push_back(
{
{ "bufferView", faceBufferViewIndex },
Expand Down

0 comments on commit 948df43

Please sign in to comment.