remove audio mapping after recording

This commit is contained in:
themancalledjakob 2024-03-16 14:48:35 +01:00
parent e5ce29a4e9
commit 424053f080

View file

@ -523,23 +523,12 @@ const Record = function(tp) {
return new Promise((resolve) => { return new Promise((resolve) => {
const layerKeys = Object.keys(hot); const layerKeys = Object.keys(hot);
const promises = []; const promises = [];
promises.push(() => {
return new Promise((subResolve) => {
const audioOptionsButtons = tp.getPanel()
.querySelectorAll(`.audioButton.active`);
if (audioOptionsButtons !== null) {
audioOptionsButtons.forEach((audioOptionsButton) => {
audioOptionsButton.click();
});
}
subResolve();
});
});
layerKeys.forEach((layerID) => { layerKeys.forEach((layerID) => {
const layer = getLayer(layerID); const layer = getLayer(layerID);
const propTitles = Object.keys(hot[layerID]); const propTitles = Object.keys(hot[layerID]);
const keyframes = []; const keyframes = [];
propTitles.forEach((propTitle) => { propTitles.forEach((propTitle) => {
audio.removeAudio(getLayer(layerID),propTitle);
// NOTE: layerID is not actually used atm // NOTE: layerID is not actually used atm
// and should be the layer anyways // and should be the layer anyways
uncloneInput(layerID, propTitle); uncloneInput(layerID, propTitle);