Jeremy Pritts dc8ebc4ce6 LightingDataAsset Improvements:
* Export to the proper path
* Only create a new asset when there is data to fill it
* Code refactor
* Related: #553 and #811
2023-05-29 23:43:39 -04:00

16 lines
443 B
C#

using AssetRipper.SourceGenerated.Subclasses.EnlightenSceneMapping;
namespace AssetRipper.SourceGenerated.Extensions;
public static class EnlightenSceneMappingExtensions
{
public static bool IsEmpty(this IEnlightenSceneMapping mapping)
{
return mapping.Renderers.Count == 0
&& mapping.SystemAtlases.Count == 0
&& mapping.Systems.Count == 0
&& mapping.TerrainChunks.Count == 0
&& (mapping.Probesets?.Count ?? 0) == 0;
}
}