提交 76a25d5d 编写于 作者: M Mr.doob

Merge remote-tracking branch 'alteredq/unflip' into dev

......@@ -179,7 +179,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 );
......
......@@ -31,6 +31,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 ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册