From 0242e29873ee5917c9015bbb9cf5830062cfbeee Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Sun, 7 Feb 2021 13:06:33 +0100 Subject: [PATCH] Fix painting foliage on inactive objects Fixes #209 --- Source/Editor/Tools/Foliage/FoliageTools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Editor/Tools/Foliage/FoliageTools.cpp b/Source/Editor/Tools/Foliage/FoliageTools.cpp index a0cbf8e14..3354be0b3 100644 --- a/Source/Editor/Tools/Foliage/FoliageTools.cpp +++ b/Source/Editor/Tools/Foliage/FoliageTools.cpp @@ -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;