History

More work on animation loading.

Andrzej Kapolka committed 12 years ago

Commit 0f69bbe1 parent 8cbad1b8 files · +61 −20Browse files

Showing the changes to libraries/script-engine/src/AnimationCache.cpp (1 of 8 files). Show all

Unified · Split

libraries/script-engine/src/AnimationCache.cpp+6−0
@@ -17,8 +17,14 @@ · 16 unmodified lines
1717
1818 static int animationPointerMetaTypeId = qRegisterMetaType<AnimationPointer>();
1919
20+AnimationCache::AnimationCache(QObject* parent) :
21+ ResourceCache(parent) {
22+}
23+
2024 AnimationPointer AnimationCache::getAnimation(const QUrl& url) {
2125 if (QThread::currentThread() != thread()) {
26+ qDebug() << "blocking call!";
27+
2228 AnimationPointer result;
2329 QMetaObject::invokeMethod(this, "getAnimation", Qt::BlockingQueuedConnection,
2430 Q_RETURN_ARG(AnimationPointer, result), Q_ARG(const QUrl&, url));