Showing the changes to libraries/script-engine/src/AnimationCache.cpp (1 of 5 files). Show all
Unified · Split
| @@ -10,7 +10,6 @@ · 9 unmodified lines | ||
| 10 | 10 | // |
| 11 | 11 | |
| 12 | 12 | #include <QRunnable> |
| 13 | −#include <QScriptEngine> | |
| 14 | 13 | #include <QThreadPool> |
| 15 | 14 | |
| 16 | 15 | #include "AnimationCache.h" |
| @@ -101,22 +100,3 @@ void Animation::downloadFinished(QNetworkReply* reply) { · 84 unmodified lines | ||
| 101 | 100 | QThreadPool::globalInstance()->start(new AnimationReader(_self, reply)); |
| 102 | 101 | } |
| 103 | 102 | |
| 104 | −QStringList AnimationObject::getJointNames() const { | |
| 105 | − return qscriptvalue_cast<AnimationPointer>(thisObject())->getJointNames(); | |
| 106 | −} | |
| 107 | − | |
| 108 | −QVector<FBXAnimationFrame> AnimationObject::getFrames() const { | |
| 109 | − return qscriptvalue_cast<AnimationPointer>(thisObject())->getFrames(); | |
| 110 | −} | |
| 111 | − | |
| 112 | −QVector<glm::quat> AnimationFrameObject::getRotations() const { | |
| 113 | − return qscriptvalue_cast<FBXAnimationFrame>(thisObject()).rotations; | |
| 114 | −} | |
| 115 | − | |
| 116 | −void registerAnimationTypes(QScriptEngine* engine) { | |
| 117 | − qScriptRegisterSequenceMetaType<QVector<FBXAnimationFrame> >(engine); | |
| 118 | − engine->setDefaultPrototype(qMetaTypeId<FBXAnimationFrame>(), engine->newQObject( | |
| 119 | − new AnimationFrameObject(), QScriptEngine::ScriptOwnership)); | |
| 120 | − engine->setDefaultPrototype(qMetaTypeId<AnimationPointer>(), engine->newQObject( | |
| 121 | − new AnimationObject(), QScriptEngine::ScriptOwnership)); | |
| 122 | −} | |