Stage 6: Document::change() always refreshes derived data; ChangeType removed
change() now flushes drafts, re-syncs assets and shaders, rebuilds every label list and the uid index, and commits. Document::ChangeType, the switch in change(), the type parameter of edit_apply/edit_run/edit_push/assets_sync, Window::changeType and every per-call change type (about 40 sites) are gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9f43a210c5
commit
2d0f70b1e5
25 files changed
+128
-202
No files matched your search
+3
-3
@@ -234,7 +234,7 @@ namespace anm2ed
|
||||
selected = std::clamp(selected, 0, (int)documents.size() - 1);
|
||||
pendingSelected = selected;
|
||||
|
||||
if (selected >= 0 && selected < (int)documents.size()) documents[selected].change(Document::ALL);
|
||||
if (selected >= 0 && selected < (int)documents.size()) documents[selected].change();
|
||||
}
|
||||
|
||||
void Manager::set(int index)
|
||||
@@ -250,7 +250,7 @@ namespace anm2ed
|
||||
selected = index;
|
||||
selection_history_push(selected);
|
||||
|
||||
if (auto document = get()) document->change(Document::ALL);
|
||||
if (auto document = get()) document->change();
|
||||
}
|
||||
|
||||
void Manager::item_properties_open(ElementType type, int id)
|
||||
@@ -339,7 +339,7 @@ namespace anm2ed
|
||||
{
|
||||
document->isForceDirty = true;
|
||||
document->path = document->path_from_autosave_get(path);
|
||||
document->change(Document::ALL);
|
||||
document->change();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user