Improved the assignation of UV slots for custom interpolators.

- Now reusing unused slots instead of simply adding them after the last used slot.
- Added missing calls to GatherExpressionsForCustomInterpolators()

#rb chris.bunner, jurre.debaare


#ROBOMERGE-OWNER: sebastien.lussier
#ROBOMERGE-AUTHOR: sebastien.lussier
#ROBOMERGE-SOURCE: CL 7321118 via CL 7321791
#ROBOMERGE-BOT: (v371-7306989)

[CL 7321793 by sebastien lussier in Main branch]
This commit is contained in:
sebastien lussier
2019-07-16 09:48:17 -04:00
parent eded3c01d3
commit 0839438169
6 changed files with 176 additions and 36 deletions

View File

@@ -754,6 +754,15 @@ public:
{
return Material && Material->MaterialDomain == MD_Volume;
}
virtual void GatherExpressionsForCustomInterpolators(TArray<UMaterialExpression*>& OutExpressions) const override
{
if(Material)
{
Material->GetAllExpressionsForCustomInterpolators(OutExpressions);
}
}
private:
/** The material interface for this proxy */
UMaterialInterface* MaterialInterface;