avmedia/source/framework/modeltools.cxx | 5 +++-- external/collada2gltf/write-only-.dae-file-which-we-need.patch.0 | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-)
New commits: commit 20f2ea061d783767937d0e6b3219476b7ac28a9e Author: Matúš Kukan <matus.ku...@collabora.com> Date: Tue May 20 02:48:43 2014 +0200 fix .kmz support on Windows; no idea why this int was unsigned Change-Id: I08fa1c3956b48bcd65edb74add010fafa17bfe82 diff --git a/external/collada2gltf/write-only-.dae-file-which-we-need.patch.0 b/external/collada2gltf/write-only-.dae-file-which-we-need.patch.0 index 68980e2..56ff909 100644 --- a/external/collada2gltf/write-only-.dae-file-which-we-need.patch.0 +++ b/external/collada2gltf/write-only-.dae-file-which-we-need.patch.0 @@ -74,7 +74,7 @@ index d193784..3b5bdfc 100644 + continue; - FILE *fp = fopen(strFilePath.c_str(),"wb"); -+ unsigned int pos = strlen(pFileName) - 1; ++ int pos = strlen(pFileName) - 1; + while (pos >= 0) { + if (pFileName[pos] == '\\' || pFileName[pos] == '/') + break; commit 04232e0171e1f5cd67e90424753a27a78968500e Author: Matúš Kukan <matus.ku...@collabora.com> Date: Tue May 20 02:34:38 2014 +0200 collada2gltf: output bundle path needs to be in url format Otherwise it does not work on Windows. It's strange though that input path has to be converted from url to native path format. At least that was my observation. Change-Id: Ia8d9e9719d927cab2ae4d928eb8066cab4588281 diff --git a/avmedia/source/framework/modeltools.cxx b/avmedia/source/framework/modeltools.cxx index 9b48552..2366dc7 100644 --- a/avmedia/source/framework/modeltools.cxx +++ b/avmedia/source/framework/modeltools.cxx @@ -142,7 +142,8 @@ bool Embed3DModel( const uno::Reference<frame::XModel>& xModel, #ifdef ENABLE_COLLADA2GLTF if (rSourceURL.endsWith(".dae") || rSourceURL.endsWith(".kmz")) { - OUString sName = ::utl::TempFile::CreateTempName(); + OUString sName; + ::utl::LocalFileHelper::ConvertPhysicalNameToURL(::utl::TempFile::CreateTempName(), sName); // remove .tmp extension sName = sName.copy(0, sName.getLength() - 4); const INetURLObject aSourceURLObj(rSourceURL); @@ -162,7 +163,7 @@ bool Embed3DModel( const uno::Reference<frame::XModel>& xModel, GLTF::COLLADA2GLTFWriter writer(asset); writer.write(); // Path to the .json file created by COLLADA2GLTFWriter - ::utl::LocalFileHelper::ConvertPhysicalNameToURL(sName + "/" + GetFilename(sName) + ".json", sSource); + sSource = sName + "/" + GetFilename(sName) + ".json"; } #endif
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits