Skip to content

fix: unnecessary dirtying of ColoredGraphic - #15

Open
Mandariini wants to merge 1 commit into
PurrNet:devfrom
Mandariini:dirtying
Open

fix: unnecessary dirtying of ColoredGraphic#15
Mandariini wants to merge 1 commit into
PurrNet:devfrom
Mandariini:dirtying

Conversation

@Mandariini

@Mandariini Mandariini commented Aug 2, 2026

Copy link
Copy Markdown

ColoredGraphic calls UnityEditor.EditorUtility.SetDirty every editor update, even when no color changes. This causes gameobject/scene containing a ColoredGraphic constantly being marked having changes.

Fix mark it dirty only if the color changes.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

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