mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 18:55:06 +08:00
review:
- Rebased to 1.10.0 - When editing multiple objects, always edit the label.
This commit is contained in:
parent
c5e787045a
commit
94002e4594
@ -268,7 +268,14 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
if (_parameterReference == null)
|
||||
{
|
||||
EditorGUI.BeginChangeCheck();
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user