Skip to content

Commit

Permalink
Revert "save and load visible component"
Browse files Browse the repository at this point in the history
This reverts commit 5397b1a.
  • Loading branch information
vincentfretin committed Sep 1, 2024
1 parent 5397b1a commit 22bca26
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/json-utils_1.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ function getAttributes(entity) {
if (entity.getAttribute('data-layer-name')) {
elemObj['data-layer-name'] = entity.getAttribute('data-layer-name');
}
if (entity.getAttribute('visible') === false) {
elemObj['visible'] = false;
}
const entityComponents = entity.components;

if (entityComponents) {
Expand Down Expand Up @@ -437,10 +434,6 @@ function createEntityFromObj(entityData, parentEl) {
entity.setAttribute('data-layer-name', entityData['data-layer-name']);
}

if (entityData['visible'] === false) {
entity.setAttribute('visible', false);
}

entity.addEventListener('loaded', () => {
// load attributes
for (const attr in entityData.components) {
Expand Down

0 comments on commit 22bca26

Please sign in to comment.