Fix painting foliage on inactive objects

Fixes #209
This commit is contained in:
Wojtek Figat
2021-02-07 13:06:33 +01:00
parent a246825b3d
commit 0242e29873

View File

@@ -67,7 +67,7 @@ struct GeometryLookup
static bool Search(Actor* actor, GeometryLookup& lookup)
{
// Early out if object is not intersecting with the foliage brush bounds
if (!actor->GetBox().Intersects(lookup.Brush))
if (!actor->GetIsActive() || !actor->GetBox().Intersects(lookup.Brush))
return true;
const auto brush = lookup.Brush;