void ABrush::Destroyed() { Super::Destroyed(); if(IsStaticBrush()) { // Trigger a csg rebuild if we're in the editor. SetNeedRebuild(GetLevel()); } }
void ABrush::Destroyed() { Super::Destroyed(); if(GIsEditor && IsStaticBrush() && !GetWorld()->IsGameWorld()) { // Trigger a csg rebuild if we're in the editor. SetNeedRebuild(GetLevel()); } }