Skip to content

Commit

Permalink
#147 feat: レイヤー移動をマスクに対応
Browse files Browse the repository at this point in the history
  • Loading branch information
ienaga committed Jul 17, 2024
1 parent d52742c commit 6210ed9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const execute = async (
}

const layer = layers[0];
const parentId = layer.parentId;
layer.mode = after_mode;
layer.parentId = after_parent_id;

Expand Down Expand Up @@ -98,7 +99,7 @@ export const execute = async (
// スクリーンの表示を更新
screenAreaUpdateMovedLayerService(layer);

if (after_parent_id) {
if (parentId > -1 || after_parent_id > -1) {
await screenDisplayObjectUpdateLayerMaskInElementUseCase(movieClip, layer);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const execute = async (
screenAreaUpdateMovedLayerService(layer);

// マスク表示を更新
if (parentId > -1) {
if (parentId > -1 || before_parent_id > -1) {
await screenDisplayObjectUpdateLayerMaskInElementUseCase(movieClip, layer);
}
}
Expand Down

0 comments on commit 6210ed9

Please sign in to comment.