Skip to content

Commit

Permalink
Fix error in last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
est77 committed Dec 30, 2017
1 parent 15629ab commit 82b3007
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/appleseedmaya/exporters/meshexporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,13 +418,6 @@ void MeshExporter::meshAttributesToParams(renderer::ParamArray& params)
int mediumPriority = 0;
if (AttributeUtils::get(node(), "asMediumPriority", mediumPriority))
params.insert("medium_priority", mediumPriority);

MString sssSet;
if (AttributeUtils::get(node(), "asSubsurfaceSet", sssSet))
{
if (sssSet.length() != 0)
params.insert_path("sss_set_id", sssSet.asChar());
}
}

int MeshExporter::getSmoothLevel(MStatus* ReturnStatus) const
Expand Down
14 changes: 14 additions & 0 deletions src/appleseedmaya/exporters/shapeexporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
// Interface header.
#include "shapeexporter.h"

// appleseed-maya headers.
#include "appleseedmaya/attributeutils.h"

// appleseed.renderer headers.
#include "renderer/api/scene.h"

Expand Down Expand Up @@ -139,6 +142,17 @@ void ShapeExporter::createObjectInstance(const MString& objectName)
}

const MString objectInstanceName = appleseedName() + MString("_instance");

// Get object instance params.
{
MString sssSet;
if (AttributeUtils::get(node(), "asSubsurfaceSet", sssSet))
{
if (sssSet.length() != 0)
params.insert_path("sss_set_id", sssSet.asChar());
}
}

m_objectInstance.reset(
asr::ObjectInstanceFactory::create(
objectInstanceName.asChar(),
Expand Down

0 comments on commit 82b3007

Please sign in to comment.