fix(ui): unlink control adapter opaicty from global mask opacity

This commit is contained in:
psychedelicious 2024-04-30 12:07:39 +10:00 committed by Kent Keirsey
parent fa637b5c59
commit 22f160bfcc

View File

@ -389,9 +389,6 @@ export const regionalPromptsSlice = createSlice({
},
globalMaskLayerOpacityChanged: (state, action: PayloadAction<number>) => {
state.globalMaskLayerOpacity = action.payload;
state.layers.filter(isControlAdapterLayer).forEach((l) => {
l.opacity = action.payload;
});
},
isEnabledChanged: (state, action: PayloadAction<boolean>) => {
state.isEnabled = action.payload;