提交 52d172db 编写于 作者: A aardgoose 提交者: Mr.doob

Mesh copy and clone methods do not copy the drawMode property. (#9023)

Add Mesh.copy() to fix this.
上级 a330c23b
......@@ -30,6 +30,16 @@ THREE.Mesh.prototype = Object.assign( Object.create( THREE.Object3D.prototype ),
},
copy: function ( source ) {
THREE.Object3D.prototype.copy.call( this, source );
this.drawMode = source.drawMode;
return this;
},
updateMorphTargets: function () {
if ( this.geometry.morphTargets !== undefined && this.geometry.morphTargets.length > 0 ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册