From 8e2a475c448ec2d1b901f069abeb113ab9db5ca7 Mon Sep 17 00:00:00 2001 From: Smallpath Date: Tue, 20 Jun 2017 15:28:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AD=98=E5=82=A8=E7=A9=BA?= =?UTF-8?q?=E9=A2=84=E5=90=88=E6=88=90=E6=97=B6=E6=8A=A5=E9=94=99=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(Fix=20#30)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/Sp_memory.jsx | 1 + lib/AfterEffectsLayer.js | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/Sp_memory.jsx b/dist/Sp_memory.jsx index 9d0636d..9bd3f89 100644 --- a/dist/Sp_memory.jsx +++ b/dist/Sp_memory.jsx @@ -1435,6 +1435,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol if (isFirstStage) { comp = layers[0].containingComp; } else { + if (layers && layers.length === 0) return new XML(''); comp = layers[1].containingComp; } diff --git a/lib/AfterEffectsLayer.js b/lib/AfterEffectsLayer.js index 7ee2eb6..c95a803 100644 --- a/lib/AfterEffectsLayer.js +++ b/lib/AfterEffectsLayer.js @@ -617,6 +617,7 @@ if (isFirstStage) { comp = layers[0].containingComp } else { + if (layers && layers.length === 0) return new XML('') comp = layers[1].containingComp }