fix(ui): do not hide entities when locked

whoops
This commit is contained in:
psychedelicious
2024-09-19 21:23:05 +10:00
parent e0ce503733
commit cfaf7b98cc

View File

@@ -301,7 +301,6 @@ export const buildEntityIsHiddenSelector = (entityIdentifier: CanvasEntityIdenti
// An entity is hidden if:
// - The entity type is hidden
// - The entity is disabled
// - The entity is locked
// - The entity is not a raster layer and we are staging and the option to show only raster layers is enabled
if (!entity) {
return true;
@@ -312,9 +311,6 @@ export const buildEntityIsHiddenSelector = (entityIdentifier: CanvasEntityIdenti
if (!entity.isEnabled) {
return true;
}
if (entity.isLocked) {
return true;
}
if (isStaging && showOnlyRasterLayersWhileStaging) {
// When staging, we only show raster layers. This allows the user to easily see how the new generation fits in
// with the rest of the canvas without the masks and control layers getting in the way.