mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[unity] Fixed SkeletonRenderTexture meshFilter null when fix prefab override enabled. Closes #2608.
This commit is contained in:
parent
6fa31a2903
commit
7066fd939f
@ -128,6 +128,8 @@ namespace Spine.Unity.Examples {
|
||||
}
|
||||
|
||||
void RenderOntoQuad (SkeletonRenderer skeletonRenderer) {
|
||||
if (meshFilter == null)
|
||||
meshFilter = this.GetComponent<MeshFilter>();
|
||||
Vector3 size = meshFilter.sharedMesh.bounds.size;
|
||||
if (size.x == 0f || size.y == 0f) {
|
||||
AssignNullMeshAtQuad();
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"name": "com.esotericsoftware.spine.spine-unity-examples",
|
||||
"displayName": "spine-unity Runtime Examples",
|
||||
"description": "This plugin provides example scenes and scripts for the spine-unity runtime.",
|
||||
"version": "4.2.35",
|
||||
"version": "4.2.36",
|
||||
"unity": "2018.3",
|
||||
"author": {
|
||||
"name": "Esoteric Software",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user