- Rebased to 1.10.0
- When editing multiple objects, always edit the label.
This commit is contained in:
Haï~ 2024-10-01 21:28:54 +02:00
parent c5e787045a
commit 94002e4594

View File

@ -268,7 +268,14 @@ namespace nadena.dev.modular_avatar.core.editor
if (_parameterReference == null)
{
EditorGUI.BeginChangeCheck();
EditorGUILayout.PropertyField(_name, G("menuitem.prop.name"));
if (_obj != null && _obj.isEditingMultipleObjects)
{
EditorGUILayout.PropertyField(_prop_label, G("menuitem.prop.name"));
}
else
{
EditorGUILayout.PropertyField(_name, G("menuitem.prop.name"));
}
if (EditorGUI.EndChangeCheck())
{
_name.serializedObject.ApplyModifiedProperties();