Skip to content

Commit

Permalink
Fix stop condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Jan 26, 2021
1 parent 0dc4c1e commit 20f2bcc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/draco/io/DracoReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,6 @@ void DracoReader::initialize()
}

m_pc = std::move(pc_status).value();

m_count = m_pc->num_points();
}

void DracoReader::addOneDimension(Dimension::Id id, const draco::PointAttribute* attr, PointLayoutPtr layout, int index, int attNum)
Expand Down Expand Up @@ -320,6 +318,7 @@ point_count_t DracoReader::read(PointViewPtr view, point_count_t count)
PointId id = view->size();
point_count_t numRead = 0;

count = (std::min)(count, (point_count_t)m_pc->num_points());
while (numRead < count)
{
for (auto& dim: m_dimensions)
Expand Down

0 comments on commit 20f2bcc

Please sign in to comment.