mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 18:55:06 +08:00
fix: missing layers in avatar descriptor can result in KeyNotFoundException (#959)
Closes: #958
This commit is contained in:
parent
1c766e9fe8
commit
dee5241436
@ -150,7 +150,9 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
basePath = "";
|
||||
}
|
||||
|
||||
bool? writeDefaults = merge.matchAvatarWriteDefaults ? writeDefaults_[merge.layerType] : null;
|
||||
var writeDefaults = merge.matchAvatarWriteDefaults
|
||||
? writeDefaults_.GetValueOrDefault(merge.layerType)
|
||||
: null;
|
||||
var controller = _context.ConvertAnimatorController(merge.animator);
|
||||
session.AddController(basePath, controller, writeDefaults);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user