fix: ArgumentNullException when selecting multiple Menu Item with same settings (#1097)

This commit is contained in:
nekobako 2024-09-04 10:51:36 +09:00 committed by GitHub
parent d403f1b178
commit c63128095e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -441,9 +441,9 @@ namespace nadena.dev.modular_avatar.core.editor
var forceMixedValues = _parameterName.hasMultipleDifferentValues;
var syncedIsMixed = forceMixedValues || _prop_isSynced.hasMultipleDifferentValues ||
siblings.Any(s => s.isSynced != _prop_isSynced.boolValue);
siblings != null && siblings.Any(s => s.isSynced != _prop_isSynced.boolValue);
var savedIsMixed = forceMixedValues || _prop_isSaved.hasMultipleDifferentValues ||
siblings.Any(s => s.isSaved != _prop_isSaved.boolValue);
siblings != null && siblings.Any(s => s.isSaved != _prop_isSaved.boolValue);
var knownParameter = _parameterName.hasMultipleDifferentValues
? null