Skip to content

Commit

Permalink
Traktor: FBX importer warn if material isn't PBR instead of assert.
Browse files Browse the repository at this point in the history
  • Loading branch information
apistol78 committed May 31, 2024
1 parent 23a21f4 commit 186ce0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/Model/Formats/Fbx/MaterialConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,11 @@ bool convertMaterials(Model& outModel, SmallMap< int32_t, int32_t >& outMaterial
if (!material)
continue;

T_FATAL_ASSERT(material->features.pbr.enabled);

const std::wstring name = mbstows(material->name.data);

if (!material->features.pbr.enabled)
log::warning << L"FBX model importer; material \"" << name << L"\" isn't PBR enabled." << Endl;

// Check if material has already been added.
const auto& materials = outModel.getMaterials();
auto it = std::find_if(materials.begin(), materials.end(), [&](const Material& m) {
Expand Down

0 comments on commit 186ce0b

Please sign in to comment.