Skip to content

Commit 63c52e0

Browse files
committed
YarnProjectImporterEditor: Update asset addresses after import completes, not during import
1 parent d98d4b4 commit 63c52e0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
3333
- renamed the test asmdef files from `YarnSpinnerTests.x` to `YarnSpinner.Unity.Tests.X` so that they are matched by the existing filters.
3434
- Generated YSLS file now matches the newer schema, see the YS core repo for details of this
3535
- When matching assets to line IDs the importer now prefers exact matches to the line ID
36+
- `YarnProjectImporterEditor` now resets some internal state when creating its UI, which should help avoid a bug where the list of sources would grow over time.
3637

3738
### Removed
3839

Editor/Editors/YarnProjectImporterEditor.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ public override VisualElement CreateInspectorGUI()
260260

261261
var importData = yarnProjectImporter.ImportData;
262262

263+
sourceEntryFields.Clear();
264+
localizationEntryFields.Clear();
265+
263266
var ui = new VisualElement();
264267
uiRoot = ui;
265268

0 commit comments

Comments
 (0)