Skip to content

Commit

Permalink
Don't check meshes or particles for dirty()
Browse files Browse the repository at this point in the history
They're just aliases
  • Loading branch information
franzpoeschel committed Jun 29, 2023
1 parent fd65afd commit bfde8c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/CustomHierarchy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -550,10 +550,10 @@ bool CustomHierarchy::dirtyRecursive() const
{
return true;
}
if (particles.dirty() || meshes.dirty())
{
return true;
}
/*
* No need to check CustomHierarchy::particles or CustomHierarchy::meshes,
* since they are just aliases for subgroups.
*/
for (auto const &pair : particles)
{
if (pair.second.dirtyRecursive())
Expand Down

0 comments on commit bfde8c5

Please sign in to comment.