少年修仙传客户端基础资源
client_Wu Xijin
2018-10-21 6f8ed2e37f8762fb3501a671d0dca40bcd68edae
Assets/Editor/Tool/SpriteManageTool.cs
@@ -125,8 +125,8 @@
    private void OnEnable()
    {
        ConfigManager.Instance.SyncLoadConfigs();
        m_IconCfgs = ConfigManager.Instance.GetAllValues<IconConfig>();
        Config.Instance.SyncLoadConfigs();
        m_IconCfgs = Config.Instance.GetAllValues<IconConfig>();
        m_DeleteTexture = EditorGUIUtility.FindTexture("TreeEditor.Trash");
        InitStyle();
@@ -464,7 +464,8 @@
            var _spriteName = Regex.Replace(_fileInfo.Name, @"\.png", string.Empty, RegexOptions.IgnoreCase);
            var _index = m_IconCfgs.FindIndex((x) =>
            {
                return x.sprite == _spriteName && x.folder == _fileInfo.Directory.Name;
                return x.sprite.ToLower().Equals(_spriteName.ToLower())
                && x.folder == _fileInfo.Directory.Name;
            });
            if (_index == -1)
            {