Repository navigation
Conversation
…ly for a model swap
Collaborator
Author
|
Shipped in 1.2.1 (#349, release v1.2.1). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
LevelEdit.apply({ kind: 'entity', guid, hidden: true })threwLevelEdit at must be a finite Vector3, although the docs say an entity is found by its EntityGuid. The client finds an entity edit by its guid;atis used only for the stand-in of a model swap.atis optional forkind: 'entity'. Without it the edit hides, moves or re-materials the entity found by its guid.at(inapplyor throughedit.model) throws a clear error: the stand-in needs a place.toJSON()leavesatout for such an edit.LevelEdit.applysays whenatis optional; C# SDK regenerated.How it was tested
level.test.cjs: new test, an entity edit by guid alone hides and moves; a model swap withoutatis refused in both ways; 13 pass.Checklist
python Dev/tools/format_source.py --checkpasses.