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