浏览代码

try fix crash when exiting editor with uiwidgets-based editor window openned

/dev_k12
xingweizhu 4 年前
当前提交
0d71f9f6
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. 4
      com.unity.uiwidgets/Runtime/rendering/binding.cs
  2. 4
      com.unity.uiwidgets/Runtime/widgets/binding.cs

4
com.unity.uiwidgets/Runtime/rendering/binding.cs


}, this.inEditorWindow);
}
protected virtual void drawFrame() {
protected virtual void drawFrame(bool layoutOnly = false) {
if (layoutOnly) return;
this.pipelineOwner.flushCompositingBits();
this.pipelineOwner.flushPaint();
this.renderView.compositeFrame();

4
com.unity.uiwidgets/Runtime/widgets/binding.cs


protected bool debugBuildingDirtyElements = false;
protected override void drawFrame() {
protected override void drawFrame(bool layoutOnly = false) {
D.assert(!this.debugBuildingDirtyElements);
D.assert(() => {
this.debugBuildingDirtyElements = true;

}
//The former widget tree must be layout first before its destruction
this.drawFrame();
this.drawFrame(true);
this.attachRootWidget(null);
this.buildOwner.buildScope(this._renderViewElement);
this.buildOwner.finalizeTree();

正在加载...
取消
保存