Skip to content

Commit

Permalink
Minor clarification of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm authored Oct 11, 2024
1 parent a4c3443 commit 56a512d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/MaterialXCore/Definition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ StringVec TargetDef::getMatchingTargets() const
vector<UnitDefPtr> UnitTypeDef::getUnitDefs() const
{
vector<UnitDefPtr> unitDefs;
// Gather unitdefs from Data library

// Gather from data library.
if (getDocument()->hasDataLibrary())
{
for (UnitDefPtr unitDef : getDocument()->getDataLibrary()->getChildrenOfType<UnitDef>())
Expand All @@ -197,7 +198,8 @@ vector<UnitDefPtr> UnitTypeDef::getUnitDefs() const
}
}
}
// Gather unitdefs from document

// Gather from content document.
for (UnitDefPtr unitDef : getDocument()->getChildrenOfType<UnitDef>())
{
if (unitDef->getUnitType() == _name)
Expand Down

0 comments on commit 56a512d

Please sign in to comment.