Merge remote-tracking branch 'HarrievG/679-gltf-map-support2' into 679-gltf-map-support2

This commit is contained in:
Robert Beckebans 2022-08-16 09:21:12 +02:00
commit 5f43800b02

View file

@ -1101,7 +1101,11 @@ void idRenderModelGLTF::LoadModel()
int num;
auto& accessors = data->AccessorList();
auto& nodes = data->NodeList();
gltfNode* meshRoot = data->GetNode( gltf_ModelSceneName.GetString(), meshName );
gltfNode* meshRoot = root;
if ( !fileExclusive )
{
meshRoot = data->GetNode( gltf_ModelSceneName.GetString(), meshName );
}
gltfSkin* skin = nullptr;
gltfAccessor* acc = nullptr;