浏览代码

fix cosmetic error on detaching specific attachment from attachment target UI

/main
Lasse Jon Fuglsang Pedersen 5 年前
当前提交
0cb8bcac
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 7
      Editor/SkinAttachmentTargetEditor.cs

7
Editor/SkinAttachmentTargetEditor.cs


GUILayout.Label(string.Format("Attachments ({0})", driver.subjects.Count), EditorStyles.boldLabel);
var checksum = driver.attachData.Checksum();
var checksumFailed = driver.CommitRequired();
foreach (var attachment in driver.subjects)
for (int i = 0; i != driver.subjects.Count; i++)
var attachment = driver.subjects[i];
EditorGUILayout.BeginHorizontal();
EditorGUILayout.ObjectField(attachment, typeof(SkinAttachment), false);
SkinAttachmentEditor.DrawGUIDetach(attachment, attachmentTargetSet);

GUILayout.Label("Checksum passed: " + attachment.Checksum(), EditorStyles.helpBox);
}
}
if (i >= driver.subjects.Count || driver.subjects[i] != attachment)
i--;
}
SkinAttachmentEditor.CommitTargetChanges(attachmentTargetSet);

正在加载...
取消
保存