未验证 提交 3cbf14fd 编写于 作者: L linbingquan 提交者: GitHub

Bone.js: Covert to ES6. (#21546)

* Bone: Covert to ES6.

* Add super();

* Clean up.
上级 1bbe8066
import { Object3D } from '../core/Object3D.js';
function Bone() {
class Bone extends Object3D {
Object3D.call( this );
constructor() {
this.type = 'Bone';
super();
}
Bone.prototype = Object.assign( Object.create( Object3D.prototype ), {
this.type = 'Bone';
constructor: Bone,
}
isBone: true
} );
}
Bone.prototype.isBone = true;
export { Bone };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册