How can i make object that i load in with GLTF loader as 1 mesh. When i move them with mouse ( drag and drop) they are moving as separate objects, also when im trying to check the size in console... it has like 100 lines of the same size over and over.
var loader = new THREE.GLTFLoader();
loader.load( `objekt.gltf`, ( gltf ) => {
this.scene.add( gltf.scene );
gltf.scene.traverse( function( object ) {
console.log(" GALDS " );
var box = new THREE.Box3().setFromObject( object );
console.log( box.getSize() );
if ( object.isMesh ) {
objects.push( object );
}
} );
});