Skip to content

Commit

Permalink
Mat property export for materials without textures
Browse files Browse the repository at this point in the history
  • Loading branch information
floxay committed Jan 13, 2022
1 parent 6ce22ba commit c90f812
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Exporters/ExportMaterial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ void ExportMaterial(const UUnrealMaterial* Mat)

CMaterialParams Params;
Mat->GetParams(Params);
if ((Params.IsNull() || Params.Diffuse == Mat) && AllTextures.Num() == 0)
// if ((Params.IsNull() || Params.Diffuse == Mat) && AllTextures.Num() == 0)
if (Params.Diffuse == Mat && AllTextures.Num() == 0) // removed "Params.IsNull()" check to export .props.mat files for materials with no textures
{
// empty/unknown material, or material itself is a texture
appPrintf("Ignoring %s'%s' due to empty parameters\n", Mat->GetClassName(), Mat->Name);
Expand Down
Binary file modified umodel.exe
Binary file not shown.

0 comments on commit c90f812

Please sign in to comment.