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

ShaderMaterial: keep uniqueId in serialize() #12419

Merged
merged 1 commit into from
Apr 21, 2022

Conversation

lxq100
Copy link
Contributor

@lxq100 lxq100 commented Apr 21, 2022

Like Material here:

serializationObject.uniqueId = this.uniqueId;

Related commit: 738236a

@azure-pipelines
Copy link

Please make sure to tag your PR with "bug", "new feature" or "breaking change" tags.

@azure-pipelines
Copy link

Snapshot stored with reference name:
refs/pull/12419/merge

Test environment:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/12419/merge/index.html

To test a playground add it to the URL, for example:

https://babylonsnapshots.z22.web.core.windows.net/refs/pull/12419/merge/index.html#WGZLGJ#4600

To test the snapshot in the playground itself use (for example):

https://playground.babylonjs.com/?snapshot=refs/pull/12419/merge#BCU1XR#0

@aWeirdo
Copy link
Contributor

aWeirdo commented Apr 21, 2022

I think this is a bug in the material class, uniqueId is a session-based unique id, (at least it used to be), so should not be serialized at all

@deltakosh
Copy link
Contributor

They are not session based now :) so this PR is good to go

@deltakosh deltakosh merged commit 6945348 into BabylonJS:master Apr 21, 2022
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