Skip to content

Commit

Permalink
Resolve #4766: Make The Model Exporter Respect The "skin" Spawnarg On…
Browse files Browse the repository at this point in the history
… Export
  • Loading branch information
codereader committed Apr 29, 2018
1 parent 8bb1d12 commit 6286c2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/model/ModelExporterBase.h
Expand Up @@ -31,7 +31,7 @@ class ModelExporterBase :
// Adds the given Surface to the exporter's queue
void addSurface(const IModelSurface& incoming, const Matrix4& localToWorld) override
{
Surface& surface = ensureSurface(incoming.getDefaultMaterial());
Surface& surface = ensureSurface(incoming.getActiveMaterial());

try
{
Expand Down
2 changes: 1 addition & 1 deletion radiant/model/ModelExporter.cpp
Expand Up @@ -123,7 +123,7 @@ void ModelExporter::processNodes()
{
const model::IModelSurface& surface = model.getSurface(s);

if (isExportableMaterial(surface.getDefaultMaterial()))
if (isExportableMaterial(surface.getActiveMaterial()))
{
_exporter->addSurface(surface, exportTransform);
}
Expand Down

0 comments on commit 6286c2c

Please sign in to comment.