mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +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;
|
||||
|
||||
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