diff --git a/Editor/LWGUI.cs b/Editor/LWGUI.cs index a7a37b7..15bd16d 100644 --- a/Editor/LWGUI.cs +++ b/Editor/LWGUI.cs @@ -191,23 +191,23 @@ public static void OnValidate(Object[] materials) MetaDataHelper.ForceUpdateMaterialsMetadataCache(materials); } - // Called after editing in code + // Called after edit in code public static void OnValidate(LWGUIMetaDatas metaDatas) { OnValidate(metaDatas?.GetMaterialEditor()?.targets); OnValidate(metaDatas?.GetMaterialEditor()?.targets); } - // Called after editing or undoing the material + // Called after edit or undo public override void ValidateMaterial(Material material) { base.ValidateMaterial(material); - // Undoing + // Undo if (metaDatas == null) { OnValidate(new Object[] { material }); } - // Editing + // Edit else { OnValidate(metaDatas);