Skip to content

Conversation

@takahirox
Copy link
Collaborator

Uniform value in ShaderMaterial can be null especially for texture (THREE.Texture or null). Then we need to check value is not null before checking value.is* in toJSON().

@takahirox takahirox changed the title Null uniform value serialization. Null uniform value serialization in ShaderMaterial.toJSON(). Dec 18, 2018
@mrdoob mrdoob added this to the r100 milestone Dec 18, 2018
@mrdoob mrdoob merged commit 403c506 into mrdoob:dev Dec 18, 2018
@mrdoob
Copy link
Owner

mrdoob commented Dec 18, 2018

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.

2 participants