Skip to content

Conversation

0xFA11
Copy link
Contributor

@0xFA11 0xFA11 commented Apr 26, 2021

removes bool NetworkManager.IsTestRun entirely as it is no longer needed.
fixes GlobalObjectIdHash consistency issue in the Editor (as we found with Noel during tests).

Copy link
Collaborator

@NoelStephensUnity NoelStephensUnity left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@JesseOlmer JesseOlmer left a comment

Choose a reason for hiding this comment

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

Regression test cases?

private void OnValidate()
{
if (UnityEditor.EditorApplication.isPlayingOrWillChangePlaymode && !NetworkManager.IsTestRun)
if (UnityEditor.EditorApplication.isPlaying && !string.IsNullOrEmpty(gameObject.scene.name))
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add some comments explaining why we're early-outing in both of these cases?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we already have tests covering this and the tests found this issue are on the way here: #754

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's very tricky to comment these flows inline here, I might try.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried 😛

Copy link
Contributor

@JesseOlmer JesseOlmer left a comment

Choose a reason for hiding this comment

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

lgtm

@0xFA11 0xFA11 enabled auto-merge (squash) April 26, 2021 18:00
@0xFA11 0xFA11 merged commit abc8555 into develop Apr 26, 2021
@0xFA11 0xFA11 deleted the fix/netgobjid branch April 26, 2021 19:20
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.

3 participants