forgot some of the bits in the material table

This commit is contained in:
Hazim Gazov
2010-05-10 11:41:39 -03:00
parent 8bcf573fe7
commit 5cc144ae3d

View File

@@ -513,6 +513,14 @@ U8 LLMaterialTable::getMCode(const std::string& name)
}
}
// <edit>
if(name.find("MCode") == 0)
{
S32 s;
sscanf(name.c_str(), "MCode%d", &s);
return U8(s);
}
// </edit>
return 0;
}
@@ -530,7 +538,10 @@ std::string LLMaterialTable::getName(U8 mcode)
}
}
return NULL;
// <edit>
//return NULL;
return llformat("MCode%d", mcode);
// </edit>
}