MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / addSymbol

Method addSymbol

COLLADAMax/src/COLLADAMaxExportNode.cpp:189–210  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

187
188 //---------------------------------------------------------------
189 void ExportNode::addSymbol ( Mtl * material, const String & symbol )
190 {
191 // TODO: should be tested with multiple (composite?) materials
192 bool found = false;
193
194 MeshSymbolMap::const_iterator it = mMeshSymbolMap.find( material );
195 if ( it!=mMeshSymbolMap.end() )
196 {
197 if ( it->second.name==symbol )
198 {
199 found = true;
200 }
201 }
202
203 if (!found)
204 {
205 Symbol newSymbol;
206 newSymbol.used = false;
207 newSymbol.name = mSymbolList.addId ( symbol );
208 mMeshSymbolMap[ material ] = newSymbol;
209 }
210 }
211
212
213

Callers 4

exportSimpleEffectMethod · 0.80
exportStandardEffectMethod · 0.80
exportUnknownEffectMethod · 0.80

Calls 2

addIdMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected