MP3 Material fix

This commit is contained in:
Jack Andersen 2015-09-18 21:46:36 -10:00
parent e431f96f5d
commit ea2c5b9722
1 changed files with 2 additions and 2 deletions

View File

@ -220,7 +220,8 @@ void Material::SectionPASS::constructNode(HECL::BlenderConnection::PyOutStream&
"new_nodetree.links.new(material_node.outputs['Alpha'], pnode.inputs['Prev Alpha'])\n";
else if (prevSection)
{
if (prevSection->m_type == ISection::PASS)
if (prevSection->m_type == ISection::PASS &&
static_cast<const SectionPASS*>(prevSection)->subtype.toUint32() != RFLV)
out << "new_nodetree.links.new(prev_pnode.outputs['Next Color'], pnode.inputs['Prev Color'])\n"
"new_nodetree.links.new(prev_pnode.outputs['Next Alpha'], pnode.inputs['Prev Alpha'])\n";
else if (prevSection->m_type == ISection::CLR)
@ -228,7 +229,6 @@ void Material::SectionPASS::constructNode(HECL::BlenderConnection::PyOutStream&
"new_nodetree.links.new(kcolor_nodes[-1][1].outputs[0], pnode.inputs['Prev Alpha'])\n";
}
/* Row Break in gridder */
out << "gridder.row_break(2)\n";
}