mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 18:55:06 +08:00
fix: menu item settings are overwritten when selecting multiple menu items (#999)
Closes: #994
This commit is contained in:
parent
3838014517
commit
622d846b9f
@ -172,7 +172,9 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
var rect = EditorGUILayout.GetControlRect(GUILayout.Width(width));
|
||||
EditorGUI.BeginProperty(rect, label, prop);
|
||||
|
||||
prop.boolValue = EditorGUI.ToggleLeft(rect, label, prop.boolValue);
|
||||
EditorGUI.BeginChangeCheck();
|
||||
var value = EditorGUI.ToggleLeft(rect, label, prop.boolValue);
|
||||
if (EditorGUI.EndChangeCheck()) prop.boolValue = value;
|
||||
|
||||
EditorGUI.EndProperty();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user