Skip to content

Commit 8e2a475

Browse files
committed
修复存储空预合成时报错的问题 (Fix #30)
1 parent af78675 commit 8e2a475

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

dist/Sp_memory.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,6 +1435,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
14351435
if (isFirstStage) {
14361436
comp = layers[0].containingComp;
14371437
} else {
1438+
if (layers && layers.length === 0) return new XML('<Comptent name="' + (elementName || 'Default') + '"></Comptent>');
14381439
comp = layers[1].containingComp;
14391440
}
14401441

lib/AfterEffectsLayer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,7 @@
617617
if (isFirstStage) {
618618
comp = layers[0].containingComp
619619
} else {
620+
if (layers && layers.length === 0) return new XML('<Comptent name="' + (elementName || 'Default') + '"></Comptent>')
620621
comp = layers[1].containingComp
621622
}
622623

0 commit comments

Comments
 (0)