Skip to content

Commit

Permalink
iterate Mask for its size, not the view's
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Aug 9, 2018
1 parent d247acf commit 065d551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/python/filters/PythonFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ PointViewSet PythonFilter::run(PointViewPtr view)
void *pydata =
m_pythonMethod->extractResult("Mask", Dimension::Type::Unsigned8, arrSize);
char *ok = (char *)pydata;
for (PointId idx = 0; idx < view->size(); ++idx)
for (PointId idx = 0; idx < arrSize; ++idx)
if (*ok++)
outview->appendPoint(*view, idx);

Expand Down

0 comments on commit 065d551

Please sign in to comment.