Skip to content

Commit

Permalink
Fixing data corruption
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanMurzak committed Jul 26, 2024
1 parent 44a7879 commit 3e46ce7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions Assets/_PackageRoot/Scripts/Binders/BaseColorBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,8 @@ private void OnValidate()
private void SetDirty(Object obj)
{
#if UNITY_EDITOR
if (UnityEditor.PrefabUtility.IsPartOfAnyPrefab(obj))
UnityEditor.PrefabUtility.RecordPrefabInstancePropertyModifications(obj);
else
UnityEditor.EditorUtility.SetDirty(obj);
UnityEditor.EditorUtility.SetDirty(obj);
UnityEditor.PrefabUtility.RecordPrefabInstancePropertyModifications(obj);
#endif
}
private void OnThemeColorChanged(ThemeData themeData, ColorData colorData) => TrySetColor(Theme.Instance.CurrentTheme);
Expand Down
2 changes: 1 addition & 1 deletion Assets/_PackageRoot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Ivan Murzak",
"url": "https://github.com/IvanMurzak"
},
"version": "2.1.2",
"version": "2.1.3",
"unity": "2019.2",
"description": "Create palettes of colors and components for change specific color on a specific visual element. Very useful to UI.",
"keywords": [
Expand Down

0 comments on commit 3e46ce7

Please sign in to comment.