Commit 74cc3f2e authored by liujiangnan's avatar liujiangnan

fix

parent f6325890
......@@ -232,7 +232,10 @@ export abstract class middleLayerBase extends cc.Component {
const middleLayer = cc.find('middleLayer');
cc.find('middleLayer/ExitBtn').active = true;
this.hideWaitingLetters();
canvas.getComponent(cc.Widget).updateAlignment();
const wgt = canvas.getComponent(cc.Widget);
if(wgt) {
wgt.updateAlignment();
}
middleLayer.scale = canvas.width / middleLayer.width;
// 挂载清洁骨骼机制节点
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment