浏览代码

Update IdLabelConfigEditor.cs

/fix_label_config_editor_indexing
Mohsen Kamalzadeh 3 年前
当前提交
bab074d2
共有 1 个文件被更改,包括 10 次插入2 次删除
  1. 12
      com.unity.perception/Editor/GroundTruth/IdLabelConfigEditor.cs

12
com.unity.perception/Editor/GroundTruth/IdLabelConfigEditor.cs


protected override IdLabelEntry CreateLabelEntryFromLabelString(SerializedProperty serializedArray,
string labelToAdd)
{
int maxLabel = Int32.MinValue;
var maxLabel = int.MinValue;
for (int i = 0; i < serializedArray.arraySize; i++)
for (var i = 0; i < serializedArray.arraySize; i++)
}
if (maxLabel == -1)
{
var startingLabelId =
(StartingLabelId) serializedObject.FindProperty(nameof(IdLabelConfig.startingLabelId)).enumValueIndex;
if (startingLabelId == StartingLabelId.One)
maxLabel = 0;
}
return new IdLabelEntry

正在加载...
取消
保存