[Libreoffice-commits] core.git: Branch 'feature/chart-3d-chart2' - sd/source
Zolnai Tamás
tamas.zolnai at collabora.com
Mon May 19 13:42:03 PDT 2014
sd/source/ui/view/sdview4.cxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 9619d789b8616d1c6acd941db982a63256c506d7
Author: Zolnai Tamás <tamas.zolnai at collabora.com>
Date: Mon May 19 18:39:02 2014 +0200
glTF objects: set playback loop by default
Change-Id: I17f5636196ba2b14f46f805ce013af5e6bede9a8
diff --git a/sd/source/ui/view/sdview4.cxx b/sd/source/ui/view/sdview4.cxx
index 2802435..c14465d 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,
More information about the Libreoffice-commits
mailing list