[engine] 修复 MotionStreak 初始化报错的问题

This commit is contained in:
SmallMain 2022-07-24 12:49:16 +08:00
parent b98b586745
commit 2882d044ba

View File

@ -255,6 +255,7 @@ var MotionStreak = cc.Class({
_updateMaterial () {
let material = this.getMaterial(0);
if (!material) return;
// 根据材质更新 uniform
const isMultiMaterial = material.material.isMultiSupport();