《Creator 2.4.11》BUG反馈

  • Creator 版本: 2.11

  • 目标平台:WIN10/谷歌浏览器、微信小游戏

  • 报错信息

Cannot set properties of null (setting _vertsDirty)

98c3ad50-a317-4bd1-805e-873f9c33aeae

  • 重现方式:
1.创建两个艺术字体的label
let bmfon_label_1 : cc.Label = ....;
let bmfon_label_2 : cc.Label = ....;

bmfon_label_1.node.on(cc.Node.EventType.SIZE_CHANGED,()=>{ 
    temp2.node.active = !bmfon_label_2.node.active
 })

bmfon_label_1.string += 'test '

  • BUG 原因:
    在updateRenderData 期间再次调用 updateRenderData 导致_comp == null
    e284713a-cce1-41b5-b3ac-2bc368dcc40f
    updateRenderData -> setContentSize ->事件分发->active-> updateRenderData

*使用FGUI里容易出现这bug

2.4.11吧?mvp

确实写错了