mirror of
https://github.com/Eragon-Brisingr/UShaderLab.git
synced 2026-09-15 23:04:37 +00:00
Init repo
This commit is contained in:
@@ -30,12 +30,12 @@ namespace
|
||||
|
||||
// Collect the registered in-memory base materials (sorted by name for a stable layout).
|
||||
TArray<UMaterial*> Bases;
|
||||
TArray<FString> Names;
|
||||
TArray<FName> Names;
|
||||
Registry.GetRegisteredModels().GenerateKeyArray(Names);
|
||||
Names.Sort();
|
||||
for (const FString& Name : Names)
|
||||
Names.Sort([](const FName& A, const FName& B) { return A.Compare(B) < 0; });
|
||||
for (const FName& Name : Names)
|
||||
{
|
||||
if (UMaterial* Base = Registry.FindMaterial(Name))
|
||||
if (UMaterial* Base = Registry.FindMaterial(Name.ToString()))
|
||||
{
|
||||
Bases.Add(Base);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user