remove audio mapping after recording
This commit is contained in:
parent
e5ce29a4e9
commit
424053f080
1 changed files with 1 additions and 12 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue