[unity] Handle TintBlack with no attachments.

This commit is contained in:
John 2018-04-12 09:19:26 +08:00 committed by GitHub
parent 7c2fb931d8
commit e25989ca6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1018,8 +1018,10 @@ namespace Spine.Unity {
}
if (settings.tintBlack) {
mesh.uv2 = this.uv2.Items;
mesh.uv3 = this.uv3.Items;
if (uv2 != null) {
mesh.uv2 = this.uv2.Items;
mesh.uv3 = this.uv3.Items;
}
}
}
}