Skip to content

Commit

Permalink
Tuning: fixed 'SET_MANAGEDMATERIALS_OPTIONS'
Browse files Browse the repository at this point in the history
  • Loading branch information
ohlidalp committed Jan 29, 2024
1 parent 8e94942 commit c57ece0
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ std::shared_ptr<Document::Module> AddonPartUtility::TransformToRigDefModule(Cach
}

keyword = Parser::IdentifyKeyword(m_context->getTokKeyword());
if (keyword == Keyword::INVALID && m_context->getTokKeyword() == "set_managedmaterials_options")
{
keyword = Keyword::SET_MANAGEDMATERIALS_OPTIONS; // Workaround, don't ask me why the regex doesn't match this.
}
if (keyword != Keyword::INVALID)
{
if (keyword == Keyword::SET_MANAGEDMATERIALS_OPTIONS)
Expand Down Expand Up @@ -218,7 +222,7 @@ void AddonPartUtility::ProcessDirectiveSetManagedMaterialsOptions()
int n = m_context->countLineArgs();
if (n > 1)
{
m_managedmaterials_options.double_sided = m_context->getTokBool(1);
m_managedmaterials_options.double_sided = m_context->getFloatData(1) == 1.f;
}
}

Expand Down

0 comments on commit c57ece0

Please sign in to comment.