Added hex digit to TFace
This commit is contained in:
parent
dd5da5d4a7
commit
e05e86fe67
@ -129,7 +129,8 @@ vector<struct TFace> parse_face(ifstream &f) {
|
||||
if (!hex && fdata.length() > 1) {
|
||||
if (SECONDCH(fdata) == 'x') {
|
||||
// this is the unidentified hex digit.
|
||||
// just it signify the texture at the end.
|
||||
// out of range for stoi
|
||||
x.hex = strtoul(fdata.c_str(), NULL, 16);
|
||||
hex = true;
|
||||
}
|
||||
} else if (!hex) {
|
||||
|
@ -18,6 +18,7 @@ struct TFace
|
||||
float m_fYScale;
|
||||
float m_fRotation;
|
||||
std::vector<int> m_Indices;
|
||||
unsigned long hex;
|
||||
std::string m_Material;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user