Skip to content

Commit

Permalink
Improve lighting data recovery when combined with static mesh separation
Browse files Browse the repository at this point in the history
  • Loading branch information
ds5678 committed Feb 3, 2024
1 parent 69f19b7 commit b6dce67
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using AssetRipper.Assets.Collections;
using AssetRipper.Assets.Export;
using AssetRipper.Assets.Metadata;
using AssetRipper.Import.Logging;
using AssetRipper.IO.Files.SerializedFiles;
using AssetRipper.Processing;

Expand All @@ -26,6 +27,7 @@ bool IExportCollection.Contains(IUnityObjectBase asset)

MetaPtr IExportCollection.CreateExportPointer(IExportContainer container, IUnityObjectBase asset, bool isLocal)
{
Logger.Warning(LogCategory.Export, $"Deleted asset '{asset.GetBestName()}' was referenced from '{container.File.Name}'");
return MetaPtr.CreateMissingReference(asset.ClassID, container.ToExportType(asset.GetType()));
}

Expand Down
2 changes: 1 addition & 1 deletion Source/AssetRipper.Export.UnityProjects/Ripper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public static IEnumerable<IAssetProcessor> GetDefaultProcessors(LibraryConfigura
}
yield return new SceneDefinitionProcessor();
yield return new MainAssetProcessor();
yield return new LightingDataProcessor();
yield return new AnimatorControllerProcessor();
yield return new AudioMixerProcessor();
yield return new EditorFormatProcessor(settings.BundledAssetsExportMode);
Expand All @@ -65,6 +64,7 @@ public static IEnumerable<IAssetProcessor> GetDefaultProcessors(LibraryConfigura
{
yield return new PrefabOutliningProcessor();
}
yield return new LightingDataProcessor();//Needs to be after static mesh separation
yield return new PrefabProcessor();
yield return new SpriteProcessor();
}
Expand Down
1 change: 0 additions & 1 deletion Source/AssetRipper.Processing/LightingDataProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
using AssetRipper.SourceGenerated.Classes.ClassID_1120;
using AssetRipper.SourceGenerated.Classes.ClassID_157;
using AssetRipper.SourceGenerated.Classes.ClassID_218;
using AssetRipper.SourceGenerated.Classes.ClassID_23;
using AssetRipper.SourceGenerated.Classes.ClassID_25;
using AssetRipper.SourceGenerated.Classes.ClassID_258;
using AssetRipper.SourceGenerated.Classes.ClassID_28;
Expand Down

0 comments on commit b6dce67

Please sign in to comment.