mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 00:34:19 +00:00
Create and delete procedural objects from the studio's entry list
A view's entries can now be created from a starter tree in a chosen folder and deleted from the browser. Deleting lists the pack files that still name the entry, then moves it to the desktop trash, or the pack's .iris/trash where there is none. An EditableSceneView opts in with SceneCreation; the host does the writing. v3: d6e6fc3ef
This commit is contained in:
1 parent
7eb45cebf6
commit
3c03bba7e7
19 files changed
+760
-32
No files matched your search
@@ -1373,6 +1373,10 @@ API now: `world.running()`, `world.seed(purpose)`, `TerrainSampler`, `FeatureSet
|
||||
reads as nodes (`NodeGraph`). The studio makes every write, so one implementation keeps the author's layout,
|
||||
checks the result is still JSON, refuses edits outside a studio world and moves the file in atomically for the pack
|
||||
watcher. `JsonText` is in the API because a view reads positions from it; splicing text is not.
|
||||
- **Creating and deleting are the host's too.** A view says only how its entries are made (`SceneCreation`: the kind
|
||||
whose folder holds the files, the JSON a new one starts as, and the prefix other files name an entry by). The host
|
||||
checks the key is a folder-safe name, writes the file, lists the files that still name an entry before it goes, and
|
||||
moves it to the trash, so a view never touches the pack's files.
|
||||
- **Paths are typed.** A `JsonPath` step is a `Key` or an `Index`, so a view cannot write a step the file cannot hold.
|
||||
- **The wire is the host's.** The studio protocol may encode an absent part or block as it likes (Iris sends `-1`);
|
||||
the API types say absent with `Optional`/`OptionalInt`.
|
||||
|
||||
Reference in new issue
Block a user