void AtlasResourceConfigTOC::load(bool forceReload/* =false */) { // Don't reload if we don't have to. if(mAreConfigsLoaded && !forceReload) return; // Issue an immediateLoad on all our >0 length name chunks. for(S32 i=0; i<mStubCount; i++) if(mStubs[i].mName[0] != 0) immediateLoad(mStubs+i, ConfigTOCLoad); mAreConfigsLoaded = true; }
void AtlasResourceObjectTOC::removeObject(SceneObject* obj,StubType* stub) { immediateLoad(stub,AtlasTOC::EditorLoad); //getAtlasFile()->startLoaderThreads(); AtlasObjectChunk* aoc = stub->mChunk; AtlasObjectChunk* new_aoc = aoc->generateCopy(); new_aoc->mOwningTOC = this; TSStatic* tsObject = dynamic_cast<TSStatic*>(obj); if(tsObject && new_aoc->removeTSStaic(tsObject)) { instateNewChunk(stub,new_aoc); } }