mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 18:55:06 +08:00
fix: error when deleting Material Setter target (#1066)
This commit is contained in:
parent
580cb2bfe9
commit
6cb249be44
@ -33,6 +33,11 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
|
||||
private static ImmutableList<(int, Material)> GetMaterialOverridesForRenderer(ComputeContext ctx, Renderer r)
|
||||
{
|
||||
if (r == null)
|
||||
{
|
||||
return ImmutableList<(int, Material)>.Empty;
|
||||
}
|
||||
|
||||
var avatar = ctx.GetAvatarRoot(r.gameObject);
|
||||
var analysis = ReactiveObjectAnalyzer.CachedAnalyze(ctx, avatar);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user