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
commitafaee48c0de5562987636624a15957fd7e49513e (patch)
treedd9d069f651746bcbd280638f2262a928568c9f9
parentFix the transaction handling in taskHost in error situations (diff)
downloadproject2-afaee48c0de5562987636624a15957fd7e49513e.tar.bz2
project2-afaee48c0de5562987636624a15957fd7e49513e.tar.xz
project2-afaee48c0de5562987636624a15957fd7e49513e.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());
}