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();