浏览代码

fix null exception, add retained layer

/siyaoH-1.17-PlatformMessage
siyao 4 年前
当前提交
64ab7e16
共有 2 个文件被更改,包括 6 次插入1 次删除
  1. 2
      com.unity.uiwidgets/Runtime/painting/text_style.cs
  2. 5
      engine/src/lib/ui/compositing/scene_builder.cc

2
com.unity.uiwidgets/Runtime/painting/text_style.cs


background: background ?? (backgroundColor != null
? backgroundPaint : null
),
shadows: shadows.Cast<Shadow>().ToList()
shadows: shadows?.Cast<Shadow>().ToList()
// fontFeatures: fontFeatures,
);
}

5
engine/src/lib/ui/compositing/scene_builder.cc


}
UIWIDGETS_API(void)
SceneBuilder_addRetained(SceneBuilder* ptr, EngineLayer* retainedLayer) {
ptr->addRetained(static_cast<fml::RefPtr<EngineLayer>>(retainedLayer));
}
UIWIDGETS_API(void)
SceneBuilder_pop(SceneBuilder* ptr) { ptr->pop(); }
UIWIDGETS_API(Scene*) SceneBuilder_build(SceneBuilder* ptr) {

正在加载...
取消
保存