From 642ff1fa58974ee1414c6fca855c787632218a15 Mon Sep 17 00:00:00 2001 From: randomdan Date: Mon, 27 Feb 2012 15:24:23 +0000 Subject: Fire the loadComplete function after loading a cached object --- project2/common/scriptLoader.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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(node->obj)) { + LoaderBase::loadedObjects.insert(p); + } + } if (!node->obj) { throw NotSupported(node->get_name()); } -- cgit v1.2.3