UnityEditor.SpriteEditorWindow.ApplyCacheSettingsToInspector C# (CSharp) Method

ApplyCacheSettingsToInspector() private method

private ApplyCacheSettingsToInspector ( SerializedObject so ) : void
so SerializedObject
return void
        private void ApplyCacheSettingsToInspector(SerializedObject so)
        {
            if ((this.m_TextureImporterSO != null) && (this.m_TextureImporterSO.targetObject == so.targetObject))
            {
                if (so.FindProperty("m_SpriteMode").intValue == this.m_TextureImporterSO.FindProperty("m_SpriteMode").intValue)
                {
                    s_Instance.m_IgnoreNextPostprocessEvent = true;
                }
                else if (this.textureIsDirty && EditorUtility.DisplayDialog("Sprite Editor Window", "You have pending changes in the Sprite Editor Window.\nDo you want to apply these changes?", "Yes", "No"))
                {
                    this.DoApply(so);
                }
            }
        }