MCPcopy Create free account
hub / github.com/assimp/assimp / UpdateUVIndex

Function UpdateUVIndex

code/PostProcessing/TextureTransform.cpp:168–180  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

166
167// ------------------------------------------------------------------------------------------------
168void 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// ------------------------------------------------------------------------------------------------
183inline static const char* MappingModeToChar(aiTextureMapMode map) {

Callers 1

ExecuteMethod · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected