mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 10:17:23 +01:00
Fix staging incompatibility with CS.
This commit is contained in:
parent
654787fa0d
commit
6e62905fa7
2 changed files with 4 additions and 4 deletions
|
|
@ -69,9 +69,9 @@ public static unsafe class MaterialService
|
|||
return null;
|
||||
|
||||
var material = (MaterialResourceHandle*) model.AsCharacterBase->MaterialsSpan[index].Value;
|
||||
if (material == null || material->ColorTable == null)
|
||||
if (material == null || material->DataSet == null)
|
||||
return null;
|
||||
|
||||
return (ColorTable.Table*)material->ColorTable;
|
||||
return (ColorTable.Table*)material->DataSet;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,13 +69,13 @@ public sealed unsafe class PrepareColorSet
|
|||
public static bool TryGetColorTable(MaterialResourceHandle* material, StainIds stainIds,
|
||||
out ColorTable.Table table)
|
||||
{
|
||||
if (material->ColorTable == null)
|
||||
if (material->DataSet == null)
|
||||
{
|
||||
table = default;
|
||||
return false;
|
||||
}
|
||||
|
||||
var newTable = *(ColorTable.Table*)material->ColorTable;
|
||||
var newTable = *(ColorTable.Table*)material->DataSet;
|
||||
if (GetDyeTable(material, out var dyeTable))
|
||||
{
|
||||
if (stainIds.Stain1.Id != 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue