remove canvasCombos from all layers
This commit is contained in:
parent
7c01738d6d
commit
e5ce29a4e9
1 changed files with 8 additions and 8 deletions
|
@ -634,9 +634,6 @@ const Audio = function(tp, record) {
|
||||||
button.classList.remove('active');
|
button.classList.remove('active');
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// only selected layers have options
|
|
||||||
// otherwise the ui is not there
|
|
||||||
if (layer.isSelected()) {
|
|
||||||
if (config.audio.colorSeparateRGBA && propTitle === 'color') {
|
if (config.audio.colorSeparateRGBA && propTitle === 'color') {
|
||||||
delete canvasCombos['color.r'];
|
delete canvasCombos['color.r'];
|
||||||
delete canvasCombos['color.g'];
|
delete canvasCombos['color.g'];
|
||||||
|
@ -645,6 +642,9 @@ const Audio = function(tp, record) {
|
||||||
} else {
|
} else {
|
||||||
delete canvasCombos[propTitle];
|
delete canvasCombos[propTitle];
|
||||||
}
|
}
|
||||||
|
// only selected layers have options
|
||||||
|
// otherwise the ui is not there
|
||||||
|
if (layer.isSelected()) {
|
||||||
const audioOptions = panel.querySelectorAll(toCssClass(`audioOptions${propTitle}`,'.'));
|
const audioOptions = panel.querySelectorAll(toCssClass(`audioOptions${propTitle}`,'.'));
|
||||||
if (audioOptions.length > 0) {
|
if (audioOptions.length > 0) {
|
||||||
audioOptions.forEach((e) => { e.remove(); });
|
audioOptions.forEach((e) => { e.remove(); });
|
||||||
|
|
Loading…
Reference in a new issue