forgot some of the bits in the material table
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user