浏览代码

Merge branch 'kgdev' into 'master'

fix clip layer.

See merge request upm-packages/ui-widgets/com.unity.uiwidgets!152
/main
Shenhua Gu 6 年前
当前提交
a2a73ff9
共有 3 个文件被更改,包括 3 次插入0 次删除
  1. 1
      Runtime/flow/clip_path_layer.cs
  2. 1
      Runtime/flow/clip_rect_layer.cs
  3. 1
      Runtime/flow/clip_rrect_layer.cs

1
Runtime/flow/clip_path_layer.cs


var clipPathBounds = this._clipPath.getBounds();
context.cullRect = context.cullRect.intersect(clipPathBounds);
this.paintBounds = Rect.zero;
if (!context.cullRect.isEmpty) {
var childPaintBounds = Rect.zero;
this.prerollChildren(context, matrix, ref childPaintBounds);

1
Runtime/flow/clip_rect_layer.cs


context.cullRect = context.cullRect.intersect(this._clipRect);
this.paintBounds = Rect.zero;
if (!context.cullRect.isEmpty) {
var childPaintBounds = Rect.zero;
this.prerollChildren(context, matrix, ref childPaintBounds);

1
Runtime/flow/clip_rrect_layer.cs


var clipPathBounds = this._clipRRect.outerRect;
context.cullRect = context.cullRect.intersect(clipPathBounds);
this.paintBounds = Rect.zero;
if (!context.cullRect.isEmpty) {
var childPaintBounds = Rect.zero;
this.prerollChildren(context, matrix, ref childPaintBounds);

正在加载...
取消
保存