Skip to content

Commit

Permalink
fix incorrect ordering issue when applying custom materials to slot n…
Browse files Browse the repository at this point in the history
…odes
  • Loading branch information
jordo committed Nov 25, 2022
1 parent 000d22c commit da5b318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spine-godot/spine_godot/SpineSprite.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit da5b318

Please sign in to comment.