Skip to content

Scripting: Pass writable copies to scripted write()#4496

Open
SIDDHAARTHAA wants to merge 1 commit into
mapeditor:masterfrom
SIDDHAARTHAA:feature/scripted-write-editable-asset-clean
Open

Scripting: Pass writable copies to scripted write()#4496
SIDDHAARTHAA wants to merge 1 commit into
mapeditor:masterfrom
SIDDHAARTHAA:feature/scripted-write-editable-asset-clean

Conversation

@SIDDHAARTHAA
Copy link
Copy Markdown
Contributor

Implemented #3986 by making scripted MapFormat.write() and TilesetFormat.write() receive writable cloned assets instead of read-only wrappers. This allows last-second script-side modifications during write while keeping the original open asset unchanged. Updated scripting API docs accordingly. Closes #3986.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scripting: Make it easier to modify an Asset in scripted exporters

1 participant