Skip to content

Commit

Permalink
[BundleEditorPlugin] Fixes crash when adding duplicated chunks to bun…
Browse files Browse the repository at this point in the history
…dles. [MeshSetPlugin] Adds DisplayName to FBX Export Window.

[BundleEditorPlugin] Minor edits to match 1.0.6.3
[MeshSetPlugin] DisplayName to match 1.0.6.3
  • Loading branch information
J-Lyt committed Feb 1, 2025
1 parent eda390c commit 0aa4524
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Plugins/BundleEditorPlugin/BundleEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public override void RemoveFromBundle(EbxAssetEntry entry, BundleEntry bentry)
if (lod.ChunkId != Guid.Empty)
{
ChunkAssetEntry chunkEntry = App.AssetManager.GetChunkEntry(lod.ChunkId);
if (chunkEntry != null && chunkEntry.SuperBundles.Count == 0)
if (chunkEntry != null && chunkEntry.SuperBundles.Count == 0 && chunkEntry.AddedSuperBundles.Count == 0)
{
chunkEntry.AddedBundles.Remove(App.AssetManager.GetBundleId(bentry));
resEntry.LinkAsset(chunkEntry);
Expand Down Expand Up @@ -232,7 +232,7 @@ public override void AddToBundle(EbxAssetEntry entry, BundleEntry bentry)
if (lod.ChunkId != Guid.Empty)
{
ChunkAssetEntry chunkEntry = App.AssetManager.GetChunkEntry(lod.ChunkId);
if (chunkEntry != null && chunkEntry.SuperBundles.Count == 0)
if (chunkEntry != null && chunkEntry.SuperBundles.Count == 0 && chunkEntry.AddedSuperBundles.Count == 0)
{
chunkEntry.AddToBundle(App.AssetManager.GetBundleId(bentry));
resEntry.LinkAsset(chunkEntry);
Expand Down Expand Up @@ -314,9 +314,9 @@ public override void AddToBundle(EbxAssetEntry entry, BundleEntry bentry)
}
}

public class TextureExtension : AddToBundleExtension
public class TextureBaseExtension : AddToBundleExtension
{
public override string AssetType => "TextureAsset";
public override string AssetType => "TextureBaseAsset";
public override void AddToBundle(EbxAssetEntry entry, BundleEntry bentry)
{
base.AddToBundle(entry, bentry);
Expand All @@ -338,9 +338,9 @@ public override void AddToBundle(EbxAssetEntry entry, BundleEntry bentry)
}
}

public class MovieTexture2Extension : AddToBundleExtension
public class MovieTextureExtension : AddToBundleExtension
{
public override string AssetType => "MovieTexture2Asset";
public override string AssetType => "MovieTextureBaseAsset";
public override void AddToBundle(EbxAssetEntry entry, BundleEntry bentry)
{
base.AddToBundle(entry, bentry);
Expand Down
3 changes: 3 additions & 0 deletions Plugins/MeshSetPlugin/MeshAssetDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,13 @@ public class MeshExportSettings

public MeshExportScale Scale { get; set; }

[DisplayName("Flatten Hierarchy (Blender)")]
public bool FlattenHierarchy { get; set; }

[DisplayName("Export Single LOD")]
public bool ExportSingleLod { get; set; }

[DisplayName("Export Additional Meshes")]
public bool ExportAdditionalMeshes { get; set; }
}

Expand Down

0 comments on commit 0aa4524

Please sign in to comment.