From ee734562dfb36ed1025bfe8a4bfd4eece2c53533 Mon Sep 17 00:00:00 2001 From: Zolnai Tamás Date: Mon, 19 May 2014 18:39:02 +0200 Subject: glTF objects: set playback loop by default Change-Id: I17f5636196ba2b14f46f805ce013af5e6bede9a8 --- sd/source/ui/view/sdview4.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sd') 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, -- cgit