Mtrl editor: Fix texture pinning

This commit is contained in:
Exter-N 2025-03-30 19:55:43 +02:00 committed by Ottermandias
parent fe5d1bc36e
commit 1d517103b3

View file

@ -59,7 +59,7 @@ public partial class MtrlTab
foreach (var textureId in TextureIds)
{
var shpkTexture = _associatedShpk.GetTextureById(textureId);
if (shpkTexture is not { Slot: 2 })
if (shpkTexture is not { Slot: 2 } && (shpkTexture is not null || textureId == TableSamplerId))
continue;
var dkData = TryGetShpkDevkitData<DevkitSampler>("Samplers", textureId, true);