mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-02 21:59:09 +08:00
[unity] Fixed ShaderGraph shaders not displayed at PartsRenderers on Unity 2023.1. Closes #2358.
This commit is contained in:
parent
aa0b9d57ca
commit
238818dd13
@ -207,7 +207,8 @@ namespace Spine.Unity {
|
|||||||
int rendererCount = partsRenderers.Count;
|
int rendererCount = partsRenderers.Count;
|
||||||
if (rendererCount <= 0) return;
|
if (rendererCount <= 0) return;
|
||||||
|
|
||||||
if (copyPropertyBlock)
|
bool assignPropertyBlock = this.copyPropertyBlock && mainMeshRenderer.HasPropertyBlock();
|
||||||
|
if (assignPropertyBlock)
|
||||||
mainMeshRenderer.GetPropertyBlock(copiedBlock);
|
mainMeshRenderer.GetPropertyBlock(copiedBlock);
|
||||||
|
|
||||||
MeshGenerator.Settings settings = new MeshGenerator.Settings {
|
MeshGenerator.Settings settings = new MeshGenerator.Settings {
|
||||||
@ -234,9 +235,8 @@ namespace Spine.Unity {
|
|||||||
MeshGenerator meshGenerator = currentRenderer.MeshGenerator;
|
MeshGenerator meshGenerator = currentRenderer.MeshGenerator;
|
||||||
meshGenerator.settings = settings;
|
meshGenerator.settings = settings;
|
||||||
|
|
||||||
if (copyPropertyBlock)
|
if (assignPropertyBlock)
|
||||||
currentRenderer.SetPropertyBlock(copiedBlock);
|
currentRenderer.SetPropertyBlock(copiedBlock);
|
||||||
|
|
||||||
// Render
|
// Render
|
||||||
currentRenderer.RenderParts(instruction.submeshInstructions, start, si + 1);
|
currentRenderer.RenderParts(instruction.submeshInstructions, start, si + 1);
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"name": "com.esotericsoftware.spine.spine-unity",
|
"name": "com.esotericsoftware.spine.spine-unity",
|
||||||
"displayName": "spine-unity Runtime",
|
"displayName": "spine-unity Runtime",
|
||||||
"description": "This plugin provides the spine-unity runtime core.",
|
"description": "This plugin provides the spine-unity runtime core.",
|
||||||
"version": "4.1.19",
|
"version": "4.1.20",
|
||||||
"unity": "2018.3",
|
"unity": "2018.3",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Esoteric Software",
|
"name": "Esoteric Software",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user