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
2db16cc384
commit
088fb2ea02
@ -268,7 +268,7 @@ namespace Spine.Unity {
|
||||
meshFilter.sharedMesh = null;
|
||||
|
||||
meshRenderer = GetComponent<MeshRenderer>();
|
||||
if (meshRenderer != null) meshRenderer.sharedMaterial = null;
|
||||
if (meshRenderer != null && meshRenderer.enabled) meshRenderer.sharedMaterial = null;
|
||||
|
||||
currentInstructions.Clear();
|
||||
rendererBuffers.Clear();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user