Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
663c6800
Kaydet (Commit)
663c6800
authored
May 20, 2014
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
collada2gltf: Ignore case of the extension.
Change-Id: If7f39a1a0537c561373137e6a9dcdb22b48037f0
üst
2fa2e6db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modeltools.cxx
avmedia/source/framework/modeltools.cxx
+4
-2
No files found.
avmedia/source/framework/modeltools.cxx
Dosyayı görüntüle @
663c6800
...
@@ -148,7 +148,9 @@ bool Embed3DModel( const uno::Reference<frame::XModel>& xModel,
...
@@ -148,7 +148,9 @@ bool Embed3DModel( const uno::Reference<frame::XModel>& xModel,
{
{
OUString
sSource
=
rSourceURL
;
OUString
sSource
=
rSourceURL
;
#ifdef ENABLE_COLLADA2GLTF
#ifdef ENABLE_COLLADA2GLTF
if
(
rSourceURL
.
endsWith
(
".dae"
)
||
rSourceURL
.
endsWith
(
".kmz"
))
const
bool
bIsDAE
=
rSourceURL
.
endsWithIgnoreAsciiCase
(
".dae"
);
const
bool
bIsKMZ
=
rSourceURL
.
endsWithIgnoreAsciiCase
(
".kmz"
);
if
(
bIsDAE
||
bIsKMZ
)
{
{
OUString
sName
;
OUString
sName
;
::
utl
::
LocalFileHelper
::
ConvertPhysicalNameToURL
(
::
utl
::
TempFile
::
CreateTempName
(),
sName
);
::
utl
::
LocalFileHelper
::
ConvertPhysicalNameToURL
(
::
utl
::
TempFile
::
CreateTempName
(),
sName
);
...
@@ -160,7 +162,7 @@ bool Embed3DModel( const uno::Reference<frame::XModel>& xModel,
...
@@ -160,7 +162,7 @@ bool Embed3DModel( const uno::Reference<frame::XModel>& xModel,
std
::
shared_ptr
<
GLTF
::
GLTFAsset
>
asset
(
new
GLTF
::
GLTFAsset
());
std
::
shared_ptr
<
GLTF
::
GLTFAsset
>
asset
(
new
GLTF
::
GLTFAsset
());
asset
->
setInputFilePath
(
sSourcePath
);
asset
->
setInputFilePath
(
sSourcePath
);
if
(
rSourceURL
.
endsWith
(
".kmz"
)
)
if
(
bIsKMZ
)
{
{
std
::
string
strDaeFilePath
=
GLTF
::
Kmz2Collada
()(
asset
->
getInputFilePath
());
std
::
string
strDaeFilePath
=
GLTF
::
Kmz2Collada
()(
asset
->
getInputFilePath
());
if
(
strDaeFilePath
==
""
)
if
(
strDaeFilePath
==
""
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment