mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 15:24:55 +08:00
fix incorrect ordering issue when applying custom materials to slot nodes (#2205)
This commit is contained in:
parent
11d0a86d40
commit
e83b9c1714
@ -621,7 +621,7 @@ void SpineSprite::update_meshes(Ref<SpineSkeleton> skeleton_ref) {
|
||||
Ref<Material> custom_material;
|
||||
|
||||
// See if we have a slot node for this slot with a custom material
|
||||
auto &nodes = slot_nodes[i];
|
||||
auto &nodes = slot_nodes[slot->getData().getIndex()];
|
||||
if (nodes.size() > 0) {
|
||||
auto slot_node = nodes[0];
|
||||
if (slot_node) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user