fixed loading

This commit is contained in:
Peter Schojer
2008-10-02 12:39:06 +00:00
parent f93551c960
commit c4e18f0733

View File

@@ -126,14 +126,14 @@ void DynamicCodeLoaderRenderer::renderHead(const Renderable* pRenderable, const
// write loadAll // write loadAll
std::vector<const DynamicCodeLoader*>::const_iterator it = deps.begin(); std::vector<const DynamicCodeLoader*>::const_iterator it = deps.begin();
str << "function " << pLoader->loadAllFunctionName() << "(ignoreSuccess){" << std::endl; str << "function " << pLoader->loadAllFunctionName() << "(ignoreParentSuccess, ignoreChildSuccess){" << std::endl;
for (; it != deps.end(); ++it) for (; it != deps.end(); ++it)
{ {
if (*it) if (*it)
str << (*it)->loadAllFunctionName() << "(ignoreSuccess);" << std::endl; str << (*it)->loadAllFunctionName() << "(ignoreChildSuccess, ignoreChildSuccess);" << std::endl;
} }
if (deps.empty()) if (deps.empty())
str << pLoader->loaderFunctionName() << "(ignoreSuccess);"; str << pLoader->loaderFunctionName() << "(ignoreParentSuccess);";
else else
{ {
str << "if (!" << pLoader->loaderFunctionName() << "PeriodicCheck){" << std::endl; str << "if (!" << pLoader->loaderFunctionName() << "PeriodicCheck){" << std::endl;