Merge pull request #77 from moihack/main
Fixed crash when overriding material by Name
This commit is contained in:
Коммит
8c67c81cc1
|
@ -78,7 +78,7 @@ bool UMaterialConverter::TryGetOverride(const URenderMaterial* SpeckleMaterial,
|
|||
{
|
||||
if(ensureAlways(IsValid(Mat)) && Mat->GetName() == Name)
|
||||
{
|
||||
OutMaterial = MaterialOverridesById[MaterialID];
|
||||
OutMaterial = *MaterialOverridesByName.Find(Mat);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче