From 2882d044ba49876b80e2df2e3dfc42de349a80a1 Mon Sep 17 00:00:00 2001 From: SmallMain Date: Sun, 24 Jul 2022 12:49:16 +0800 Subject: [PATCH] =?UTF-8?q?[engine]=20=E4=BF=AE=E5=A4=8D=20MotionStreak=20?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- engine/cocos2d/core/components/CCMotionStreak.js | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/cocos2d/core/components/CCMotionStreak.js b/engine/cocos2d/core/components/CCMotionStreak.js index 91b6153f..e7fcfb7a 100644 --- a/engine/cocos2d/core/components/CCMotionStreak.js +++ b/engine/cocos2d/core/components/CCMotionStreak.js @@ -255,6 +255,7 @@ var MotionStreak = cc.Class({ _updateMaterial () { let material = this.getMaterial(0); + if (!material) return; // 根据材质更新 uniform const isMultiMaterial = material.material.isMultiSupport();