Skip to content

fix(editor): create_empty_map reports current_world and gains an opt-in open param - #133

Open
whalemenace wants to merge 1 commit into
tumourlove:masterfrom
whalemenace:fix/create-empty-map-current-world
Open

fix(editor): create_empty_map reports current_world and gains an opt-in open param#133
whalemenace wants to merge 1 commit into
tumourlove:masterfrom
whalemenace:fix/create-empty-map-current-world

Conversation

@whalemenace

Copy link
Copy Markdown

create_empty_map saves a new UWorld but leaves the editor on whatever world was open, and nothing in the response says so. Agents chain create→populate and silently edit the wrong world — we've shipped actors into /Temp/Untitled_N this way, and on 0.22.0 the failure mode is quieter and worse: you edit whatever map happened to be open.

Changes:

  • Response gains current_world (the editor world after the call) and opened, and the success message states explicitly that the open world is unchanged and how to open the new one.
  • Opt-in open param (default false, no behavior change) loads the map after creation via ULevelEditorSubsystem::LoadLevel — same semantics as editor::load_level, one call instead of the create/load pair every agent writes anyway.

Verified live on 0.22.0: without open, current_world correctly reports the untouched world and the message warns; with open=true, the editor lands on the new map and a follow-up world query confirms it.

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.

2 participants