|
@@ -19,7 +19,7 @@ THREE.VRMLLoader.prototype = {
|
|
|
|
|
|
scope.dispatchEvent( { type: 'load', content: object } );
|
|
|
|
|
|
- if ( callback ) callback( geometry );
|
|
|
+ //if ( callback ) callback( geometry ); //WP what is that line for ?? and hyw only one geometry and no material ?
|
|
|
|
|
|
}, false );
|
|
|
|
|
@@ -153,11 +153,12 @@ THREE.VRMLLoader.prototype = {
|
|
|
|
|
|
var result = float4_pattern.exec( child );
|
|
|
|
|
|
- object.rotation.set(
|
|
|
+ object.quaternion.set(
|
|
|
parseFloat( result[ 1 ] ),
|
|
|
parseFloat( result[ 2 ] ),
|
|
|
- parseFloat( result[ 3 ] )
|
|
|
- ).multiplyScalar( result[ 4 ] );
|
|
|
+ parseFloat( result[ 3 ] ),
|
|
|
+ parseFloat( result[ 4 ] )
|
|
|
+ );
|
|
|
|
|
|
} else if ( /scale/.exec( child ) ) {
|
|
|
|