cocos-enhance-kit/jsb-adapter/engine/jsb-skin-mesh.js
2022-06-25 00:23:03 +08:00

11 lines
344 B
JavaScript

(function(){
if (!cc.SkinnedMeshRenderer) return;
let SkinnedMeshAssembler = cc.SkinnedMeshRenderer.__assembler__.prototype;
cc.js.mixin(SkinnedMeshAssembler, {
updateRenderData (comp) {
comp.calcJointMatrix();
comp.node._renderFlag |= cc.RenderFlow.FLAG_UPDATE_RENDER_DATA;
},
});
})();