summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2012-02-27 15:24:23 +0000
committerrandomdan <randomdan@localhost>2012-02-27 15:24:23 +0000
commit642ff1fa58974ee1414c6fca855c787632218a15 (patch)
treedd9d069f651746bcbd280638f2262a928568c9f9
parentFix the transaction handling in taskHost in error situations (diff)
downloadproject2-642ff1fa58974ee1414c6fca855c787632218a15.tar.bz2
project2-642ff1fa58974ee1414c6fca855c787632218a15.tar.xz
project2-642ff1fa58974ee1414c6fca855c787632218a15.zip
Fire the loadComplete function after loading a cached object
-rw-r--r--project2/common/scriptLoader.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/project2/common/scriptLoader.cpp b/project2/common/scriptLoader.cpp
index 360076c..9b1a36d 100644
--- a/project2/common/scriptLoader.cpp
+++ b/project2/common/scriptLoader.cpp
@@ -100,6 +100,11 @@ LoaderBase::collectAll(ScriptNodePtr node, bool childrenOnly, const StorerPtrs &
}
}
}
+ else {
+ if (SourceObjectPtr p = boost::dynamic_pointer_cast<SourceObject>(node->obj)) {
+ LoaderBase::loadedObjects.insert(p);
+ }
+ }
if (!node->obj) {
throw NotSupported(node->get_name());
}