MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / clearAssetDependencyFields

Method clearAssetDependencyFields

Engine/source/assets/assetBase.cpp:346–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344//-----------------------------------------------------------------------------
345
346void AssetBase::clearAssetDependencyFields(const char* pFieldName)
347{
348 SimFieldDictionary* fieldDictionary = getFieldDictionary();
349 for (SimFieldDictionaryIterator itr(fieldDictionary); *itr; ++itr)
350 {
351 SimFieldDictionary::Entry* entry = *itr;
352
353 if (String(entry->slotName).startsWith(pFieldName))
354 {
355 setDataField(entry->slotName, NULL, "");
356 }
357 }
358}
359
360//-----------------------------------------------------------------------------
361

Callers 3

saveAssetMethod · 0.80
saveSceneMethod · 0.80

Calls 2

startsWithMethod · 0.80
StringClass · 0.50

Tested by

no test coverage detected