浏览代码

Addressing a PR suggestion.

/4.1
Todd Stinson 4 年前
当前提交
d09bbd55
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      Assets/Scripts/CustomConfigurationChooser.cs

2
Assets/Scripts/CustomConfigurationChooser.cs


int featureWeight = requestedFeatures.Intersection(descriptor.capabilities).Count();
// Increase the weight if there are matching camera features.
if (requestedCameraFeatures.Intersection(descriptor.capabilities) > 0)
if (requestedCameraFeatures.Any(descriptor.capabilities))
{
featureWeight += 100;
}

正在加载...
取消
保存