mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-25 06:01:51 +01:00
Fix some unnecessary crashes on mtrl.
This commit is contained in:
parent
b359c18360
commit
35c6e0ec88
3 changed files with 24 additions and 9 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using Dalamud.Interface;
|
||||
using ImGuiNET;
|
||||
|
|
@ -259,7 +260,7 @@ public partial class ModEditWindow
|
|||
|
||||
private static bool DrawMaterialColorSetChange( MtrlFile file, bool disabled )
|
||||
{
|
||||
if( file.ColorSets.Length == 0 )
|
||||
if( !file.ColorSets.Any(c => c.HasRows ) )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue