提交 307d5ebf 编写于 作者: O Olli Etuaho

Fix handling material extensions when cloning

ShaderMaterial properties might be changed after cloning it, so it's important that a deep copy of extensions is created instead of just referencing the same extensions config object in the cloned material.
上级 f32e6f14
......@@ -109,7 +109,7 @@ ShaderMaterial.prototype.copy = function ( source ) {
this.morphTargets = source.morphTargets;
this.morphNormals = source.morphNormals;
this.extensions = source.extensions;
this.extensions = Object.assign( {}, source.extensions );
return this;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册