------------------------------------------------------------------------------------------------
| 166 | |
| 167 | // ------------------------------------------------------------------------------------------------ |
| 168 | void UpdateUVIndex(const std::list<TTUpdateInfo>& l, unsigned int n) { |
| 169 | // Don't set if == 0 && wasn't set before |
| 170 | for (std::list<TTUpdateInfo>::const_iterator it = l.begin();it != l.end(); ++it) { |
| 171 | const TTUpdateInfo& info = *it; |
| 172 | |
| 173 | if (info.directShortcut) |
| 174 | *info.directShortcut = n; |
| 175 | else if (!n) |
| 176 | { |
| 177 | info.mat->AddProperty<int>((int*)&n,1,AI_MATKEY_UVWSRC(info.semantic,info.index)); |
| 178 | } |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | // ------------------------------------------------------------------------------------------------ |
| 183 | inline static const char* MappingModeToChar(aiTextureMapMode map) { |