浏览代码

fix focus_manager.cs

/siyaoH-1.17-PlatformMessage
Shiyun Wen 4 年前
当前提交
e3141b63
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 5
      com.unity.uiwidgets/Runtime/widgets/focus_manager.cs

5
com.unity.uiwidgets/Runtime/widgets/focus_manager.cs


D.assert(FocusManagerUtils._focusDebug($"Refreshing focus state. Next focus will be {_markedForFocus}"));
if (_markedForFocus != null && _markedForFocus != _primaryFocus) {
HashSet<FocusNode> previousPath = new HashSet<FocusNode>(previousFocus?.ancestors) ?? new HashSet<FocusNode>();
HashSet<FocusNode> previousPath = previousFocus?.ancestors != null ? new HashSet<FocusNode>(previousFocus.ancestors) : new HashSet<FocusNode>();
foreach(FocusNode node in FocusTravesalUtils.difference(nextPath,previousPath)) {
_dirtyNodes.Add(node);
}

正在加载...
取消
保存