From cea89ba3ae0ec39a7d6ffbc65aa770567bd5699a Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 3 Dec 2017 20:02:55 +0100 Subject: [PATCH] - fix backslashes in MD3 skin names. --- src/r_data/models/models_md3.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/r_data/models/models_md3.cpp b/src/r_data/models/models_md3.cpp index e504b252a..8a649f713 100644 --- a/src/r_data/models/models_md3.cpp +++ b/src/r_data/models/models_md3.cpp @@ -166,6 +166,8 @@ bool FMD3Model::Load(const char * path, int lumpnum, const char * buffer, int le for (int i = 0; i < s->numSkins; i++) { // [BB] According to the MD3 spec, Name is supposed to include the full path. + // ... and since some tools seem to output backslashes, these need to be replaced with forward slashes to work. + FixPathSeperator(shader[i].Name); s->skins[i] = LoadSkin("", shader[i].Name); // [BB] Fall back and check if Name is relative. if (!s->skins[i].isValid())