提交 e80b396b 编写于 作者: B Ben Adams

Update skeleton in existing loop

上级 0f7ba90a
......@@ -1635,18 +1635,6 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( camera.parent === undefined ) camera.updateMatrixWorld();
// update Skeleton objects
scene.traverse( function ( object ) {
if ( object instanceof THREE.SkinnedMesh ) {
object.skeleton.update();
}
} );
camera.matrixWorldInverse.getInverse( camera.matrixWorld );
_projScreenMatrix.multiplyMatrices( camera.projectionMatrix, camera.matrixWorldInverse );
......@@ -1763,6 +1751,13 @@ THREE.WebGLRenderer = function ( parameters ) {
} else {
// update Skeleton objects
if ( object instanceof THREE.SkinnedMesh ) {
object.skeleton.update();
}
objects.init( object );
if ( object instanceof THREE.Light ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册