mirror of
https://github.com/DarkPlacesEngine/dpmodel.git
synced 2025-04-23 22:50:51 +00:00
dpmodel: when writing MD3, check the TAG_ prefix case INsensitively (blender default is apparently tag_ and not TAG_)
git-svn-id: svn://svn.icculus.org/twilight/trunk/dpmodel@9338 d7cf8633-e32d-0410-b094-e92efae38249
This commit is contained in:
parent
e4d251cab9
commit
26c35e2721
1 changed files with 2 additions and 2 deletions
|
@ -2451,7 +2451,7 @@ int writemodel_md3(void)
|
|||
putlelong(numframes); // frames
|
||||
numtags = 0;
|
||||
for (i = 0;i < numbones;i++)
|
||||
if (!strncmp(bones[i].name, "TAG_", 4))
|
||||
if (!strncasecmp(bones[i].name, "TAG_", 4))
|
||||
numtags++;
|
||||
putlelong(numtags); // number of tags per frame
|
||||
putlelong(numshaders); // number of meshes
|
||||
|
@ -2499,7 +2499,7 @@ int writemodel_md3(void)
|
|||
}
|
||||
for (j = 0;j < numbones;j++)
|
||||
{
|
||||
if (strncmp(bones[j].name, "TAG_", 4))
|
||||
if (strncasecmp(bones[j].name, "TAG_", 4))
|
||||
continue;
|
||||
putstring(bones[j].name, 64);
|
||||
// output the origin and then 9 rotation floats
|
||||
|
|
Loading…
Reference in a new issue