浏览代码

small changes

/main
Mohsen Kamalzadeh 4 年前
当前提交
ee7c43f0
共有 3 个文件被更改,包括 1 次插入8 次删除
  1. 5
      com.unity.perception/Editor/GroundTruth/LabelConfigEditor.cs
  2. 1
      com.unity.perception/Editor/GroundTruth/LabelingEditor.cs
  3. 3
      com.unity.perception/Editor/GroundTruth/Uxml/LabelConfig_Main.uxml

5
com.unity.perception/Editor/GroundTruth/LabelConfigEditor.cs


m_UiInitialized = false;
ChangesHappeningInForeground = true;
RefreshListDataAndPresentation();
Undo.undoRedoPerformed += () =>
{
ChangesHappeningInForeground = true;
RefreshListDataAndPresentation();
};
}
private int m_PreviousLabelsArraySize = -1;

1
com.unity.perception/Editor/GroundTruth/LabelingEditor.cs


if (m_FirstItemLabelsArray.arraySize != m_PreviousLabelsArraySize)
{
Debug.Log("model checker refreshing");
AssesAutoLabelingStatus();
RefreshManualLabelingData();
m_PreviousLabelsArraySize = m_FirstItemLabelsArray.arraySize;

3
com.unity.perception/Editor/GroundTruth/Uxml/LabelConfig_Main.uxml


style="align-self: center; padding: 10px; flex-grow:1; height: 40px; margin: 0 0 0 3"/>
</VisualElement>
<VisualElement class="helpbox" style="margin: 7px 0 7px 0 ">
<Label text="Warning:" style="color:yellow; margin-bottom: 5px"/>
text="Importing labels from file will overwrite all existing contents of this label configuration."/>
text="Importing a label config file will overwrite all existing contents of this label config."/>
</VisualElement>
</VisualElement>

正在加载...
取消
保存