There still is a bug for the value no actually updating
Showing the changes to libraries/shared/src/RegisteredMetaTypes.cpp (1 of 14 files). Show all
Unified · Split
| @@ -808,10 +808,10 @@ AnimationDetails::AnimationDetails() : · 807 unmodified lines | ||
| 808 | 808 | } |
| 809 | 809 | |
| 810 | 810 | AnimationDetails::AnimationDetails(QString role, QUrl url, float fps, float priority, bool loop, |
| 811 | − bool hold, bool startAutomatically, float firstFrame, float lastFrame, bool running, float currentFrame) : | |
| 811 | + bool hold, bool startAutomatically, float firstFrame, float lastFrame, bool running, float currentFrame, bool allowTranslation) : | |
| 812 | 812 | role(role), url(url), fps(fps), priority(priority), loop(loop), hold(hold), |
| 813 | 813 | startAutomatically(startAutomatically), firstFrame(firstFrame), lastFrame(lastFrame), |
| 814 | − running(running), currentFrame(currentFrame) { | |
| 814 | + running(running), currentFrame(currentFrame), allowTranslation(allowTranslation) { | |
| 815 | 815 | } |
| 816 | 816 | |
| 817 | 817 | |
| @@ -828,6 +828,7 @@ QScriptValue animationDetailsToScriptValue(QScriptEngine* engine, const Animatio · 10 unmodified lines | ||
| 828 | 828 | obj.setProperty("lastFrame", details.lastFrame); |
| 829 | 829 | obj.setProperty("running", details.running); |
| 830 | 830 | obj.setProperty("currentFrame", details.currentFrame); |
| 831 | + obj.setProperty("allowTranslation", details.allowTranslation); | |
| 831 | 832 | return obj; |
| 832 | 833 | } |
| 833 | 834 | |