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

Method resetCompilation

Engine/source/persistence/taml/taml.cpp:474–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472 //-----------------------------------------------------------------------------
473
474 void Taml::resetCompilation(void)
475 {
476 // Debug Profiling.
477 PROFILE_SCOPE(Taml_ResetCompilation);
478
479 // Clear compiled nodes.
480 for (typeNodeVector::iterator itr = mCompiledNodes.begin(); itr != mCompiledNodes.end(); ++itr)
481 {
482 // Fetch node.
483 TamlWriteNode* pNode = (*itr);
484
485 // Reset node.
486 pNode->resetNode();
487
488 // Delete node.
489 delete pNode;
490 }
491 mCompiledNodes.clear();
492
493 // Clear compiled objects.
494 mCompiledObjects.clear();
495
496 // Reset master node Id.
497 mMasterNodeId = 0;
498 }
499
500 //-----------------------------------------------------------------------------
501

Callers

nothing calls this directly

Calls 4

resetNodeMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected