mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): make control image opacity filter toggleable
This commit is contained in:
committed by
Kent Keirsey
parent
1212698059
commit
8a791d4f16
@ -72,7 +72,7 @@ export const useLayerOpacity = (layerId: string) => {
|
||||
createSelector(selectControlLayersSlice, (controlLayers) => {
|
||||
const layer = controlLayers.present.layers.filter(isControlAdapterLayer).find((l) => l.id === layerId);
|
||||
assert(layer, `Layer ${layerId} not found`);
|
||||
return Math.round(layer.opacity * 100);
|
||||
return { opacity: Math.round(layer.opacity * 100), isFilterEnabled: layer.isFilterEnabled };
|
||||
}),
|
||||
[layerId]
|
||||
);
|
||||
|
Reference in New Issue
Block a user