Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glTFLoader
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kai Westerkamp
glTFLoader
Commits
110727d8
Commit
110727d8
authored
Feb 02, 2017
by
wester
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitignore
parent
6c3f8ba7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
17 deletions
+20
-17
.gitignore
.gitignore
+13
-0
UE4Editor-GLTFLoader.dll
Binaries/Win64/UE4Editor-GLTFLoader.dll
+0
-0
UE4Editor.modules
Binaries/Win64/UE4Editor.modules
+0
-10
GLTFFactory.cpp
Source/GLTFLoader/Private/GLTFFactory.cpp
+1
-1
GLTFLoader.cpp
Source/GLTFLoader/Private/GLTFLoader.cpp
+6
-6
No files found.
.gitignore
0 → 100644
View file @
110727d8
Binaries
DerivedDataCache
Intermediate
Saved
*.VC.db
*.opensdf
*.opendb
*.sdf
*.sln
*.suo
*.xcodeproj
*.xcworkspace
\ No newline at end of file
Binaries/Win64/UE4Editor-GLTFLoader.dll
View file @
110727d8
No preview for this file type
Binaries/Win64/UE4Editor.modules
deleted
100644 → 0
View file @
6c3f8ba7
{
"Changelist" : 3249277,
"CompatibleChangelist" : 3195953,
"BuildId" : "afcfff98-97a3-4269-9c38-2ec2156cd5a3",
"Modules" :
{
"GLTFLoader" : "UE4Editor-GLTFLoader.dll"
}
}
\ No newline at end of file
Source/GLTFLoader/Private/GLTFFactory.cpp
View file @
110727d8
...
...
@@ -22,7 +22,7 @@
UGLTFFactory
::
UGLTFFactory
(
const
FObjectInitializer
&
ObjectInitializer
)
:
Super
(
ObjectInitializer
)
{
SupportedClass
=
UStaticMesh
::
StaticClass
();
SupportedClass
=
UStaticMesh
Component
::
StaticClass
();
Formats
.
Add
(
TEXT
(
"gltf;GLTF meshes"
));
bCreateNew
=
false
;
...
...
Source/GLTFLoader/Private/GLTFLoader.cpp
View file @
110727d8
...
...
@@ -216,8 +216,8 @@ TSharedRef<SDockTab> FGLTFLoaderModule::OnSpawnPluginTab(const FSpawnTabArgs& Sp
void
FGLTFLoaderModule
::
OpenImportWindow
()
{
/*
//
TArray<FString> Filenames;
TArray
<
FString
>
Filenames
;
if
(
FDesktopPlatformModule
::
Get
()
->
OpenFileDialog
(
nullptr
,
TEXT
(
"Choose a GLTF file to import"
),
...
...
@@ -231,14 +231,14 @@ void FGLTFLoaderModule::OpenImportWindow()
{
UE_LOG
(
LogTemp
,
Log
,
TEXT
(
"File: %s"
),
*
File
);
}
*/
FAssetToolsModule
&
AssetToolsModule
=
FModuleManager
::
Get
().
LoadModuleChecked
<
FAssetToolsModule
>
(
"AssetTools"
);
TArray
<
FString
>
Filenames
;
Filenames
.
Add
(
"D:/Dropbox/Studium/MasterArbeit/glTF-Sample-Models/1.0/Box/glTF/Box.gltf"
);
//
TArray<FString> Filenames;
//
Filenames.Add("D:/Dropbox/Studium/MasterArbeit/glTF-Sample-Models/1.0/Box/glTF/Box.gltf");
AssetToolsModule
.
Get
().
ImportAssets
(
Filenames
,
FString
(
"/Game/Content"
));
//
}
}
}
void
FGLTFLoaderModule
::
PluginButtonClicked
()
...
...
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