Skip to content

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Feb 5, 2021

Related issue: Fixed #19878.

Description

TimerNode and VelocityNode did not implement their toJSON() method correctly since they missed to call the super method of their upper class. Hence, certain properties missed in the JSON file and produced undefined values during the deserialization process. That happened because the copy() of both classes use the respective super method to copy values from the upper class.

I've also updated the JSON files by removing the deprecated TimerNode.useTimeScale property.

@Mugen87 Mugen87 requested a review from sunag February 5, 2021 18:49
@mrdoob mrdoob added this to the r126 milestone Feb 5, 2021
@mrdoob mrdoob merged commit d001b22 into mrdoob:dev Feb 6, 2021
@mrdoob
Copy link
Owner

mrdoob commented Feb 6, 2021

Thanks!

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.

Unset uniforms with NodeMaterial

3 participants