diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-05-19 18:39:02 +0200 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-05-21 15:25:08 +0200 |
commit | ee734562dfb36ed1025bfe8a4bfd4eece2c53533 (patch) | |
tree | 6b1cc4670ade91d189b68a1c6e432e09282ca0d5 | |
parent | 7e4708739dd7a4d9db3a093a9f36d95f0192e639 (diff) |
glTF objects: set playback loop by default
Change-Id: I17f5636196ba2b14f46f805ce013af5e6bede9a8
-rw-r--r-- | sd/source/ui/view/sdview4.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sd/source/ui/view/sdview4.cxx b/sd/source/ui/view/sdview4.cxx index 2802435f4a03..c14465d6da56 100644 --- a/sd/source/ui/view/sdview4.cxx +++ b/sd/source/ui/view/sdview4.cxx @@ -307,7 +307,11 @@ SdrMediaObj* View::Insert3DModelURL( if (!bRet) { return 0; } } - return InsertMediaObj( sRealURL, "application/vnd.gltf+json", rAction, rPos, rSize ); + SdrMediaObj* pRetObject = InsertMediaObj( sRealURL, "application/vnd.gltf+json", rAction, rPos, rSize ); + avmedia::MediaItem aItem = pRetObject->getMediaProperties(); + aItem.setLoop(true); + pRetObject->setMediaProperties(aItem); + return pRetObject; } SdrMediaObj* View::InsertMediaObj( const OUString& rMediaURL, const OUString& rMimeType, sal_Int8& rAction, |