mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-22 07:47:48 +01:00
Fix ItemSwap with changed target IMC material variant.
This commit is contained in:
parent
20303a9416
commit
960c936f8d
2 changed files with 4 additions and 3 deletions
|
|
@ -60,7 +60,8 @@ public static class EquipmentSwap
|
|||
foreach( var slot in ConvertSlots( slotFrom, rFinger, lFinger ) )
|
||||
{
|
||||
(var imcFileFrom, var variants, affectedItems) = GetVariants( slot, idFrom, idTo, variantFrom );
|
||||
var imcFileTo = new ImcFile( new ImcManipulation( slot, variantTo, idTo.Value, default ) );
|
||||
var imcManip = new ImcManipulation( slot, variantTo, idTo.Value, default );
|
||||
var imcFileTo = new ImcFile( imcManip);
|
||||
|
||||
var isAccessory = slot.IsAccessory();
|
||||
var estType = slot switch
|
||||
|
|
@ -72,7 +73,7 @@ public static class EquipmentSwap
|
|||
|
||||
var skipFemale = false;
|
||||
var skipMale = false;
|
||||
var mtrlVariantTo = imcFileTo.GetEntry( ImcFile.PartIndex( slot ), variantTo ).MaterialId;
|
||||
var mtrlVariantTo = manips( imcManip.Copy( imcFileTo.GetEntry( ImcFile.PartIndex( slot ), variantTo ) ) ).Imc.Entry.MaterialId;
|
||||
foreach( var gr in Enum.GetValues< GenderRace >() )
|
||||
{
|
||||
switch( gr.Split().Item1 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue