Skip to content

fix: refresh cancommit value of ClientNetworkTransform - release 1.0.0 backport #1618

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

Conversation

LukeStampfli
Copy link
Contributor

This is a backport of #1606

@LukeStampfli LukeStampfli changed the title fix: refresh cancommit value of ClientNetworkTransform - release 1.0.0 backport fix: refresh cancommit value of ClientNetworkTransform - release 1.0.0 backport Jan 25, 2022
@@ -26,6 +26,7 @@ public override void OnNetworkSpawn()

protected override void Update()
{
CanCommitToTransform = IsOwner;
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess this is needed in addition to the OnNetworkSpawn call because this can change between ONS and Update? Because this seems a bit odd I think this is worth a comment

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, I guess one could think "why does ClientNT have this setting in Update and ONS but regular NT only has it in ONS

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah you're right this would have been worth a comment but I already merged the original PR this is just the backport 😭

Copy link
Contributor

@mattwalsh-unity mattwalsh-unity left a comment

Choose a reason for hiding this comment

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

Made a comment on the update call

@mattwalsh-unity mattwalsh-unity merged commit 0937356 into release/1.0.0 Jan 26, 2022
@mattwalsh-unity mattwalsh-unity deleted the fix/clientnetworktransform-updateowner-release-1.0.0 branch January 26, 2022 18:49
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