mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[unity] Fix cloning MeshAttachment nonessential fields.
This commit is contained in:
parent
48173c6d85
commit
14b61672a0
@ -715,7 +715,7 @@ namespace Spine.Unity.Modules.AttachmentTools {
|
||||
ma.hulllength = o.hulllength;
|
||||
|
||||
// Nonessential.
|
||||
ma.Edges = o.Edges.Clone() as int[];
|
||||
ma.Edges = (o.Edges == null) ? null : o.Edges.Clone() as int[]; // Allow absence of Edges array when nonessential data is not exported.
|
||||
ma.Width = o.Width;
|
||||
ma.Height = o.Height;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user