Skip to content

Commit

Permalink
Merge pull request #83430 from RandomShaper/fix_onion_audio
Browse files Browse the repository at this point in the history
Fix onion skinning internals activating audio/method/animation tracks
  • Loading branch information
akien-mga committed Nov 12, 2023
2 parents 5abeb04 + 5671e47 commit 3e23755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/plugins/animation_player_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1632,7 +1632,7 @@ void AnimationPlayerEditor::_prepare_onion_layers_2_step_prepare(int p_step_offs
bool valid = anim->get_loop_mode() != Animation::LOOP_NONE || (pos >= 0 && pos <= anim->get_length());
onion.captures_valid[p_capture_idx] = valid;
if (valid) {
player->seek(pos, true);
player->seek(pos, true, true);
OS::get_singleton()->get_main_loop()->process(0);
// This is the key: process the frame and let all callbacks/updates/notifications happen
// so everything (transforms, skeletons, etc.) is up-to-date visually.
Expand Down

0 comments on commit 3e23755

Please sign in to comment.