|
@@ -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 ) {
|