提交 46b78bbd 编写于 作者: R Ricardo Cabello

Merge pull request #6409 from benaadams/update-skeleton

Update skeleton in existing loop
......@@ -1637,18 +1637,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 );
......@@ -1767,6 +1755,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.
先完成此消息的编辑!
想要评论请 注册