Skip to content

fix: prevent scenes/prefabs from becoming dirty#32

Open
iMobCoding wants to merge 1 commit intoibrahimpenekli:masterfrom
iMobCoding:pr-only-fix-scene-dirty
Open

fix: prevent scenes/prefabs from becoming dirty#32
iMobCoding wants to merge 1 commit intoibrahimpenekli:masterfrom
iMobCoding:pr-only-fix-scene-dirty

Conversation

@iMobCoding
Copy link

fix: prevent scenes/prefabs from becoming dirty when localized values are unchanged

  • Add value comparison in TryUpdateComponentLocalization before applying changes
  • Only record undo and set property values when localized content actually differs
  • Handle UnityEngine.Object equality properly using Unity's == operator
  • Resolves issue where saving C# files or opening prefabs with localization components would unnecessarily mark scenes/prefabs as dirty

Check the issue here #26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant