|
@@ -4,7 +4,6 @@
|
|
|
|
|
|
import {
|
|
|
Group,
|
|
|
- Matrix4,
|
|
|
Mesh
|
|
|
} from "../../../build/three.module.js";
|
|
|
|
|
@@ -26,18 +25,17 @@ var SceneUtils = {
|
|
|
|
|
|
detach: function ( child, parent, scene ) {
|
|
|
|
|
|
- child.applyMatrix( parent.matrixWorld );
|
|
|
- parent.remove( child );
|
|
|
- scene.add( child );
|
|
|
+ console.warn( 'THREE.SceneUtils: detach() has been deprecated. Use scene.attach( child ) instead.' );
|
|
|
+
|
|
|
+ scene.attach( child );
|
|
|
|
|
|
},
|
|
|
|
|
|
attach: function ( child, scene, parent ) {
|
|
|
|
|
|
- child.applyMatrix( new Matrix4().getInverse( parent.matrixWorld ) );
|
|
|
+ console.warn( 'THREE.SceneUtils: attach() has been deprecated. Use parent.attach( child ) instead.' );
|
|
|
|
|
|
- scene.remove( child );
|
|
|
- parent.add( child );
|
|
|
+ parent.attach( child );
|
|
|
|
|
|
}
|
|
|
|