19 lines
607 B
JavaScript
Raw Normal View History

2022-06-25 00:23:03 +08:00
(function(){
if(!cc.Sprite.__assembler__.RadialFilled3D) return;
let proto = cc.Sprite.__assembler__.RadialFilled3D.prototype;
Object.assign(proto, {
updateWorldVerts (sprite) {
let local = this._local;
let world = this._renderData.vDatas[0];
let floatsPerVert = this.floatsPerVert;
for (let offset = 0, l = world.length; offset < l; offset += floatsPerVert) {
world[offset] = local[offset];
world[offset+1] = local[offset+1];
world[offset+2] = 0;
}
}
})
})()