-
Notifications
You must be signed in to change notification settings - Fork 857
[RP Workflows] Fix serialization of generic enums on the Rendering Debugger #6093
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
[RP Workflows] Fix serialization of generic enums on the Rendering Debugger #6093
Conversation
Hi! This comment will help you figure out which jobs to run before merging your PR. The suggestions are dynamic based on what files you have changed. SRP Core Depending on the scope of your PR, you may need to run more jobs than what has been suggested. Please speak to your lead or a Graphics SDET (#devs-graphics-automation) if you are unsure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The removed null check make the API less robust. I am not sure why we need this.
Remaining seams good :)
if (state == null || | ||
state.GetValue() == null || | ||
!(DebugManager.instance.GetItem(queryPath) is DebugUI.IValueField widget)) | ||
if (!(DebugManager.instance.GetItem(queryPath) is DebugUI.IValueField widget)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why removing the state null check ? It is used below.
This can break the code if called with null state.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with the changes won't make the state to be null anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ha sorry I was thinking it was public :D;;
So it is ok
if (state == null || | ||
state.GetValue() == null || | ||
!(DebugManager.instance.GetItem(queryPath) is DebugUI.IValueField widget)) | ||
if (!(DebugManager.instance.GetItem(queryPath) is DebugUI.IValueField widget)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ha sorry I was thinking it was public :D;;
So it is ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing seems sufficient ! ✔️
Purpose of this PR
https://fogbugz.unity3d.com/f/cases/1371353/
Testing status
1- Open Rendering Debbuger
2- Hide it with another tab
3- Do assembly reload
4- Perform an action
5-Undo last action
6-See that the issue does not happen, and the Enum Values are recovered.
Comments to reviewers
Notes for the reviewers you have assigned.