mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 15:24:55 +08:00
parent
e321488949
commit
b8ec11f20e
@ -416,11 +416,11 @@ namespace Spine.Unity {
|
||||
public virtual void LateUpdateMesh () {
|
||||
#if SPINE_OPTIONAL_RENDEROVERRIDE
|
||||
bool doMeshOverride = generateMeshOverride != null;
|
||||
if ((!meshRenderer.enabled) && !doMeshOverride) return;
|
||||
#else
|
||||
if ((!meshRenderer || !meshRenderer.enabled) && !doMeshOverride) return;
|
||||
#else
|
||||
const bool doMeshOverride = false;
|
||||
if (!meshRenderer.enabled) return;
|
||||
#endif
|
||||
#endif
|
||||
var currentInstructions = this.currentInstructions;
|
||||
var workingSubmeshInstructions = currentInstructions.submeshInstructions;
|
||||
var currentSmartMesh = rendererBuffers.GetNextMesh(); // Double-buffer for performance.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user