Fix zindex property not working on polysec component.

This commit is contained in:
2022-11-26 21:55:03 +08:00
parent 4bcf76819c
commit e43a0e62b7
2 changed files with 4 additions and 1 deletions

View File

@@ -110,6 +110,7 @@ namespace Cryville.Crtr.Components {
if (body.FrameName != null) AddMat(materials, body.FrameName);
if (tail.FrameName != null) AddMat(materials, tail.FrameName);
mesh.Renderer.materials = materials.ToArray();
UpdateZIndex();
}
void AddMat(List<Material> list, string frame) {