mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[unity] Fixed material being cleared to null when MeshRenderer is disabled in the editor. Closes #1288.
This commit is contained in:
parent
4da1cc35d8
commit
b5e8d49cb2
@ -268,7 +268,7 @@ namespace Spine.Unity {
|
|||||||
meshFilter.sharedMesh = null;
|
meshFilter.sharedMesh = null;
|
||||||
|
|
||||||
meshRenderer = GetComponent<MeshRenderer>();
|
meshRenderer = GetComponent<MeshRenderer>();
|
||||||
if (meshRenderer != null) meshRenderer.sharedMaterial = null;
|
if (meshRenderer != null && meshRenderer.enabled) meshRenderer.sharedMaterial = null;
|
||||||
|
|
||||||
currentInstructions.Clear();
|
currentInstructions.Clear();
|
||||||
rendererBuffers.Clear();
|
rendererBuffers.Clear();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user