Skip to content

Commit

Permalink
Twist logic
Browse files Browse the repository at this point in the history
  • Loading branch information
rexrainbow committed Aug 14, 2023
1 parent 3ca7428 commit 47c00ea
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plugins/behaviors/modal/CreateCover.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ var CreateCover = function (gameObject, config) {
syncScale: false,
syncAlpha: false,
syncScrollFactor: false
});
if (gameObject.hasLayer()) {
gameObject.addToRenderLayer(cover);
}
});
gameObject.moveDepthBelow(cover);
} else {
scene.children.moveBelow(cover, gameObject);
Expand Down

0 comments on commit 47c00ea

Please sign in to comment.