summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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());
}