Explorar o código

Merge pull request #83430 from RandomShaper/fix_onion_audio

Fix onion skinning internals activating audio/method/animation tracks
Rémi Verschelde hai 1 ano
pai
achega
3e23755d24
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      editor/plugins/animation_player_editor_plugin.cpp

+ 1 - 1
editor/plugins/animation_player_editor_plugin.cpp

@@ -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());
 		bool valid = anim->get_loop_mode() != Animation::LOOP_NONE || (pos >= 0 && pos <= anim->get_length());
 		onion.captures_valid[p_capture_idx] = valid;
 		onion.captures_valid[p_capture_idx] = valid;
 		if (valid) {
 		if (valid) {
-			player->seek(pos, true);
+			player->seek(pos, true, true);
 			OS::get_singleton()->get_main_loop()->process(0);
 			OS::get_singleton()->get_main_loop()->process(0);
 			// This is the key: process the frame and let all callbacks/updates/notifications happen
 			// This is the key: process the frame and let all callbacks/updates/notifications happen
 			// so everything (transforms, skeletons, etc.) is up-to-date visually.
 			// so everything (transforms, skeletons, etc.) is up-to-date visually.