Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ss_player/SpriteStudio-SDK
7 changes: 6 additions & 1 deletion ss_player/ss_internal_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1684,6 +1684,10 @@ void SsInternalPlayer::_drawAnimation(float frame_no, float delta_seconds, bool
}
}

for (uint32_t i = 0; i < _instance_children.size(); i++) {
if (_instance_children[i].player) _instance_children[i].player->setRootVisible(false);
}

// Per-frame draw-order counter: batch CIs and per-part CIs draw in the
// order they are emitted (rank order), not in CI-pool allocation order.
_draw_seq = 0;
Expand Down Expand Up @@ -2034,11 +2038,12 @@ void SsInternalPlayer::_drive_instance_slot(InstanceChildState& state,
child->play();
}

child->setRootVisible(false);
if (!r.visible) {
return;
}

child->_update_instance_children(r.child_frame_no, delta_seconds, r.child_looped);

_redraw_child_if_frame_changed(child, r.child_frame_no, delta_seconds, r.child_looped);
}

Expand Down
Loading