提交 e06c50d1 编写于 作者: U unknown

added parent traversal function to Object3d

上级 d7337a8b
......@@ -527,6 +527,17 @@ THREE.Object3D.prototype = {
},
traverseParents: function ( callback ) {
if( this.parent ){
callback( this.parent );
this.parent.traverseParents( callback );
}
},
updateMatrix: function () {
this.matrix.compose( this.position, this.quaternion, this.scale );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册