Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent null reference exceptions in editor when using not-serializab… #371

Merged
merged 3 commits into from
Oct 23, 2022

Conversation

soraphis
Copy link
Collaborator

@soraphis soraphis commented Oct 23, 2022

this is taking only the relevant parts of PR #304. Special thanks to @IceTrooper.

I created a new PR to keep all the small refactoring changes out, which resulted in merge conflicts and much noise.

In AtomBaseReferenceDrawer > OnGUI: the diff looks like much, but I actually just wrapped the previous code in an if-else branch and I'm showing a label if the property is not serializable. the else branch is unchanged.

I suggest in the "files changed"-tab select the settings-icon and "hide whitespaces" so the indentation does not confuse the diff coloring

@soraphis soraphis linked an issue Oct 23, 2022 that may be closed by this pull request
@soraphis soraphis added the bug Something isn't working label Oct 23, 2022
@soraphis soraphis added this to the v4.4.6 milestone Oct 23, 2022
Copy link
Collaborator

@AdamRamberg AdamRamberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super nice! Thanks for submitting this PR <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Errors when viewing atoms generated for non serializable types
2 participants