Partial Groom export support (Alembic format) / Misa Online support / ARK, ABI, Sea of Thieves, Days Gone updates / Faster ASTC decoder
Some checks failed
FModel QA Builder / build (push) Has been cancelled

This commit is contained in:
Masusder
2026-11-19 20:31:23 +01:00
committed by GitHub
parent 16ecb540ca
commit 70631fbf9a
9 changed files with 36 additions and 9 deletions

View File

@@ -51,6 +51,7 @@ using CUE4Parse.UE4.Assets.Exports.Criware;
using CUE4Parse.UE4.Assets.Exports.Engine;
using CUE4Parse.UE4.Assets.Exports.Fmod;
using CUE4Parse.UE4.Assets.Exports.GeometryCollection;
using CUE4Parse.UE4.Assets.Exports.HairStrands;
using CUE4Parse.UE4.Assets.Exports.Houdini;
using CUE4Parse.UE4.Assets.Exports.Material;
using CUE4Parse.UE4.Assets.Exports.Sound;
@@ -1636,6 +1637,7 @@ public class CUE4ParseViewModel : ViewModel
case UHoudiniStaticMesh when HasFlag(bulk, EBulkType.Meshes):
case UGeometryCollection when HasFlag(bulk, EBulkType.Meshes):
case USkinnedAsset when HasFlag(bulk, EBulkType.Meshes):
case UGroomAsset when HasFlag(bulk, EBulkType.Meshes):
case USkeleton when UserSettings.Default.SaveSkeletonAsMesh && HasFlag(bulk, EBulkType.Meshes):
// case UMaterialInterface when HasFlag(bulk, EBulkType.Materials):
case UAnimationAsset when HasFlag(bulk, EBulkType.Animations):

View File

@@ -45,6 +45,7 @@ using CUE4Parse.UE4.Assets.Exports.Material;
using CUE4Parse.UE4.Assets.Exports.Material.Editor;
using CUE4Parse.UE4.Assets.Exports.Nanite;
using CUE4Parse.UE4.Assets.Exports.Niagara;
using CUE4Parse.UE4.Assets.Exports.Rig;
using CUE4Parse.UE4.Assets.Exports.SkeletalMesh;
using CUE4Parse.UE4.Assets.Exports.Sound;
using CUE4Parse.UE4.Assets.Exports.StaticMesh;
@@ -89,6 +90,13 @@ public class GameFileViewModel(GameFile asset) : ViewModel
private set => SetProperty(ref _resolvedAssetType, value);
}
private (string Geometry, string Brush) _iconStyle;
public (string Geometry, string Brush) IconStyle
{
get => _iconStyle;
private set => SetProperty(ref _iconStyle, value);
}
private bool _isSelected;
public bool IsSelected
{
@@ -260,10 +268,11 @@ public class GameFileViewModel(GameFile asset) : ViewModel
UHoudiniStaticMesh => (EAssetCategory.StaticMesh, EBulkType.Meshes),
USkeletalMesh => (EAssetCategory.SkeletalMesh, EBulkType.Meshes),
UChaosClothAsset => (EAssetCategory.ChaosClothAsset, EBulkType.Meshes),
UCustomizableObject => (EAssetCategory.CustomizableObject, EBulkType.None),
UCustomizableObject => (EAssetCategory.CustomizableObject, EBulkType.None), // TODO: Add support
UNaniteDisplacedMesh => (EAssetCategory.NaniteDisplacedMesh, EBulkType.None),
UGeometryCollection => (EAssetCategory.GeometryCollection, EBulkType.Meshes),
UGroomAsset or UGroomBindingAsset => (EAssetCategory.GroomAsset, EBulkType.None),
UGroomAsset => (EAssetCategory.GroomAsset, EBulkType.Meshes), // TODO: Add full support
UGroomBindingAsset => (EAssetCategory.GroomAsset, EBulkType.None), // TODO: Add support
UHoudiniAsset => (EAssetCategory.Data, EBulkType.None),
@@ -331,6 +340,14 @@ public class GameFileViewModel(GameFile asset) : ViewModel
};
var obj = pointer.Object.Value;
IconStyle = obj switch
{
UGroomBindingAsset => (null, "GroomBindingAssetBrush"),
USkeletalMesh mesh when mesh.AssetUserData?.Any(data => data?.ResolvedObject is { } reference &&
(reference.IsA<UDNAAsset>() || reference.Class?.Name.Text == "DNAAssetUserData")) == true => ("MetaHumanIcon", null), // Way to detect MetaHumans, for >UE 5.8 DNAAssetUserData is needed since DNAAsset can be standalone asset
_ => default
};
if (EmbeddedFilesDto.Supports(dummy))
{
var files = new EmbeddedFilesDto(obj).Files;

View File

@@ -11,7 +11,8 @@
<SolidColorBrush x:Key="UserDefinedEnumBrush" Color="DarkGoldenrod" />
<SolidColorBrush x:Key="UserDefinedStructBrush" Color="Tan" />
<SolidColorBrush x:Key="GroomAssetBrush" Color="RosyBrown " />
<SolidColorBrush x:Key="GroomAssetBrush" Color="RosyBrown" />
<SolidColorBrush x:Key="GroomBindingAssetBrush" Color="CadetBlue" />
<SolidColorBrush x:Key="ChaosClothBrush" Color="LightSlateGray" />
<SolidColorBrush x:Key="CustomizableObjectBrush" Color="DarkRed" />
<SolidColorBrush x:Key="NaniteDisplacedMeshBrush" Color="ForestGreen" />

View File

@@ -47,6 +47,7 @@
<Binding Path="AssetCategory" />
<Binding Path="ResolvedAssetType" />
<Binding Path="AssetFamily" />
<Binding Path="IconStyle" />
</MultiBinding>
</Path.Data>
<Path.Fill>
@@ -54,6 +55,7 @@
<Binding Path="AssetCategory" />
<Binding Path="ResolvedAssetType" />
<Binding Path="AssetFamily" />
<Binding Path="IconStyle" />
</MultiBinding>
</Path.Fill>
</Path>

View File

@@ -37,6 +37,7 @@
<Binding Path="AssetCategory" />
<Binding Path="ResolvedAssetType" />
<Binding Path="AssetFamily" />
<Binding Path="IconStyle" />
</MultiBinding>
</Path.Data>
<Path.Fill>
@@ -44,6 +45,7 @@
<Binding Path="AssetCategory" />
<Binding Path="ResolvedAssetType" />
<Binding Path="AssetFamily" />
<Binding Path="IconStyle" />
</MultiBinding>
</Path.Fill>
</Path>

View File

@@ -12,7 +12,7 @@ public class FileToGeometryConverter : IMultiValueConverter
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
{
if (values.Length < 3 || values[0] is not EAssetCategory category || values[1] is not string resolvedAssetType || values[2] is not EAssetFamily family)
if (values is not [EAssetCategory category, string resolvedAssetType, EAssetFamily family, ValueTuple<string, string> iconStyle])
return null;
resolvedAssetType = resolvedAssetType.ToLowerInvariant();
@@ -130,10 +130,12 @@ public class FileToGeometryConverter : IMultiValueConverter
_ => (geometry, brush),
};
var (geometryOverride, brushOverride) = iconStyle;
if (targetType == typeof(Geometry))
return Application.Current.FindResource(geometry) as Geometry;
return Application.Current.FindResource(geometryOverride ?? geometry) as Geometry;
if (targetType == typeof(Brush))
return Application.Current.FindResource(brush) as Brush;
return Application.Current.FindResource(brushOverride ?? brush) as Brush;
return null;
}

File diff suppressed because one or more lines are too long

Submodule Snooper updated: 230f204aed...d3d4ce01f3