Add hecl_lightmap to MP3 materials

This commit is contained in:
Phillip Stephens 2016-02-25 23:57:22 -08:00
parent 1dde24bb74
commit 10db7d86d2
1 changed files with 7 additions and 0 deletions

View File

@ -167,9 +167,16 @@ void Material::SectionPASS::constructNode(HECL::BlenderConnection::PyOutStream&
switch (Subtype(subtype.toUint32()))
{
case Subtype::DIFF:
{
out << "pnode.node_tree = bpy.data.node_groups['RetroPassDIFF']\n";
if (txtrId)
{
out << "new_material.hecl_lightmap = texture.name\n"
<< "texture.image.use_fake_user = True\n";
}
linkRAS = true;
break;
}
case Subtype::RIML:
out << "pnode.node_tree = bpy.data.node_groups['RetroPassRIML']\n";
if (idx == 0)