Fix an issue with retainer assignments using ownership wrongly for mannequins.

This commit is contained in:
Ottermandias 2023-03-01 23:11:05 +01:00
parent e62b0155d4
commit c2ac745d72
7 changed files with 23 additions and 13 deletions

View file

@ -175,7 +175,7 @@ public partial class ModEditWindow
}
private static T? DefaultParseFile( byte[] bytes )
=> Activator.CreateInstance( typeof( T ), BindingFlags.CreateInstance | BindingFlags.OptionalParamBinding, bytes ) as T;
=> Activator.CreateInstance( typeof( T ), bytes ) as T;
private void UpdateCurrentFile( Mod.Editor.FileRegistry path )
{

View file

@ -584,7 +584,7 @@ public partial class ModEditWindow : Window, IDisposable
() => _editor?.ShpkFiles ?? Array.Empty< Editor.FileRegistry >(),
DrawShaderPackagePanel,
() => _mod?.ModPath.FullName ?? string.Empty,
bytes => new ShpkTab( bytes ) );
null );
_center = new CombinedTexture( _left, _right );
}