From 18b9a839899f51c113d12a79ac682d1c6cbee76c Mon Sep 17 00:00:00 2001 From: lauris47 Date: Fri, 12 Sep 2025 15:40:17 +0200 Subject: [PATCH] Allow export of empty materials to retain potential parent material data --- Exporters/ExportMaterial.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Exporters/ExportMaterial.cpp b/Exporters/ExportMaterial.cpp index 527d6a26..3a9f4d95 100644 --- a/Exporters/ExportMaterial.cpp +++ b/Exporters/ExportMaterial.cpp @@ -36,12 +36,6 @@ void ExportMaterial(const UUnrealMaterial* Mat) CMaterialParams Params; Mat->GetParams(Params); - if ((Params.IsNull() || Params.Diffuse == Mat) && AllTextures.Num() == 0) - { - // empty/unknown material, or material itself is a texture - appPrintf("Ignoring %s'%s' due to empty parameters\n", Mat->GetClassName(), Mat->Name); - return; - } FArchive* Ar = CreateExportArchive(Mat, EFileArchiveOptions::TextFile, "%s.mat", Mat->Name); if (!Ar) return;