Skip to content

Commit bfde8c5

Browse files
committed
Don't check meshes or particles for dirty()
They're just aliases
1 parent fd65afd commit bfde8c5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/CustomHierarchy.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -550,10 +550,10 @@ bool CustomHierarchy::dirtyRecursive() const
550550
{
551551
return true;
552552
}
553-
if (particles.dirty() || meshes.dirty())
554-
{
555-
return true;
556-
}
553+
/*
554+
* No need to check CustomHierarchy::particles or CustomHierarchy::meshes,
555+
* since they are just aliases for subgroups.
556+
*/
557557
for (auto const &pair : particles)
558558
{
559559
if (pair.second.dirtyRecursive())

0 commit comments

Comments
 (0)