VRML files can contain non-normalized rotation vectors, whether correctly or incorrectly. This change loads such files safely, and has no impact if the vector is already normalized.
@@ -800,7 +800,7 @@ class VRMLLoader extends Loader {
break;
case 'rotation':
- const axis = new Vector3( fieldValues[ 0 ], fieldValues[ 1 ], fieldValues[ 2 ] );
+ const axis = new Vector3( fieldValues[ 0 ], fieldValues[ 1 ], fieldValues[ 2 ] ).normalize();
const angle = fieldValues[ 3 ];
object.quaternion.setFromAxisAngle( axis, angle );