Commit 110727d8 by wester

gitignore

parent 6c3f8ba7
Binaries
DerivedDataCache
Intermediate
Saved
*.VC.db
*.opensdf
*.opendb
*.sdf
*.sln
*.suo
*.xcodeproj
*.xcworkspace
\ No newline at end of file
{
"Changelist" : 3249277,
"CompatibleChangelist" : 3195953,
"BuildId" : "afcfff98-97a3-4269-9c38-2ec2156cd5a3",
"Modules" :
{
"GLTFLoader" : "UE4Editor-GLTFLoader.dll"
}
}
\ No newline at end of file
......@@ -22,7 +22,7 @@
UGLTFFactory::UGLTFFactory(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
SupportedClass = UStaticMesh::StaticClass();
SupportedClass = UStaticMeshComponent::StaticClass();
Formats.Add(TEXT("gltf;GLTF meshes"));
bCreateNew = false;
......
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment