@@ -178,7 +178,6 @@
spotLight.shadowMapHeight = SHADOW_MAP_HEIGHT;
scene.add( spotLight );
- scene.add( spotLight.target );
directionalLight2 = new THREE.PointLight( 0xff9900, 0.25 );
directionalLight2.position.set( 0.5, -1, 0.5 );
@@ -32,6 +32,12 @@ THREE.Scene.prototype.addObject = function ( object ) {
}
+ if ( object.target && object.target.parent === undefined ) {
+
+ this.add( object.target );
+ }
} else if ( !( object instanceof THREE.Camera || object instanceof THREE.Bone ) ) {
if ( this.__objects.indexOf( object ) === - 1 ) {