mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-15 07:00:58 +00:00
transform bugs
This commit is contained in:
parent
18677c0e4a
commit
e84ef1edb2
1 changed files with 4 additions and 4 deletions
|
@ -125,7 +125,8 @@ MapPolygonMesh* MapPolygonMesh::ConvertFromMeshGltf( const gltfMesh_Primitive* p
|
|||
bin.Read( ( void* )( &pos.y ), attrAcc->typeSize );
|
||||
bin.Read( ( void* )( &pos.z ), attrAcc->typeSize );
|
||||
|
||||
pos *= trans * axisTransform;
|
||||
pos *= trans;
|
||||
pos *= axisTransform;
|
||||
|
||||
mesh->verts[i].xyz.x = pos.x;
|
||||
mesh->verts[i].xyz.y = pos.y;
|
||||
|
@ -256,7 +257,7 @@ MapPolygonMesh* MapPolygonMesh::ConvertFromMeshGltf( const gltfMesh_Primitive* p
|
|||
return mesh;
|
||||
}
|
||||
|
||||
void ProcessSceneNode( idMapEntity* newEntity, gltfNode* node, idMat4& trans, gltfData* data , bool staticMesh = false )
|
||||
void ProcessSceneNode( idMapEntity* newEntity, gltfNode* node, idMat4 trans, gltfData* data , bool staticMesh = false )
|
||||
{
|
||||
auto& nodeList = data->NodeList();
|
||||
|
||||
|
@ -315,9 +316,8 @@ void ProcessSceneNode( idMapEntity* newEntity, gltfNode* node, idMat4& trans, gl
|
|||
idMat4 axisTransform( rotation, vec3_origin );
|
||||
|
||||
origin *= axisTransform;
|
||||
newEntity->epairs.Set( "origin", origin.ToString() );
|
||||
|
||||
newEntity->epairs.Set( "rotation", node->rotation.ToMat3().Transpose().ToString() );
|
||||
newEntity->epairs.Set( "origin", origin.ToString() );
|
||||
}
|
||||
|
||||
void Map_AddMeshes( idMapEntity* _Entity, gltfNode* _Node, idMat4& _Trans, gltfData* _Data )
|
||||
|
|
Loading…
Reference in a new issue