mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-06 14:45:06 +08:00
fix: NPE in menu installer editor
This commit is contained in:
parent
569275dcba
commit
435ce7b248
@ -282,9 +282,13 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
if (result != ValidateExpressionMenuIconResult.Success) return result;
|
if (result != ValidateExpressionMenuIconResult.Success) return result;
|
||||||
|
|
||||||
// Labels
|
// Labels
|
||||||
foreach (VRCExpressionsMenu.Control.Label label in control.labels) {
|
if (control.labels != null)
|
||||||
ValidateExpressionMenuIconResult labelResult = Util.ValidateExpressionMenuIcon(label.icon);
|
{
|
||||||
if (labelResult != ValidateExpressionMenuIconResult.Success) return labelResult;
|
foreach (VRCExpressionsMenu.Control.Label label in control.labels)
|
||||||
|
{
|
||||||
|
ValidateExpressionMenuIconResult labelResult = Util.ValidateExpressionMenuIcon(label.icon);
|
||||||
|
if (labelResult != ValidateExpressionMenuIconResult.Success) return labelResult;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// SubMenu
|
// SubMenu
|
||||||
|
Loading…
Reference in New Issue
Block a user