From 9f50dbc9bc2a0ed8a2183613366d568651529699 Mon Sep 17 00:00:00 2001 From: Robert Beckebans Date: Fri, 11 Nov 2022 13:12:38 +0100 Subject: [PATCH] Astyle --- neo/idlib/MapFile_gltf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/idlib/MapFile_gltf.cpp b/neo/idlib/MapFile_gltf.cpp index c4812030..6a9e0b80 100644 --- a/neo/idlib/MapFile_gltf.cpp +++ b/neo/idlib/MapFile_gltf.cpp @@ -461,7 +461,7 @@ void ResolveLight( gltfData* data, idMapEntity* newEntity, gltfNode* node ) gltfData::ResolveNodeMatrix( node, &entityToWorldTransform ); float fov = tan( light->spot.outerConeAngle ) / 2 ; - idQuat q = (entityToWorldTransform).ToMat3().ToQuat(); + idQuat q = ( entityToWorldTransform ).ToMat3().ToQuat(); q = idAngles( 90.0f, 0.0, -90.0f ).ToQuat() * q * idAngles( 180.0f, 180.0f, -90.0f ).ToQuat(); idMat3 axis = q.ToMat3(); newEntity->epairs.SetVector( "light_target", axis[0] );