diff --git a/app/pages/PageEnigma/Editor/scene_manager_api.ts b/app/pages/PageEnigma/Editor/scene_manager_api.ts index f825cb5196..a3d023b7c2 100644 --- a/app/pages/PageEnigma/Editor/scene_manager_api.ts +++ b/app/pages/PageEnigma/Editor/scene_manager_api.ts @@ -243,6 +243,7 @@ export class SceneManager implements SceneManagerAPI { } public async copy() { + // TODO MAKE BETTER FIX: Temp disables copy and paste of characters. const object = this.mouse_controls.selected?.at(0) if(object !== undefined ){ if(this.is_character(object.uuid) === false) diff --git a/docs/DOCS/COPYPASTE.md b/docs/DOCS/COPYPASTE.md new file mode 100644 index 0000000000..d3642b7a78 --- /dev/null +++ b/docs/DOCS/COPYPASTE.md @@ -0,0 +1,21 @@ +# STORYTELLER STUDIO ENGINE DOCS + +This is the official documentation for the storyteller studio engine. + +[Back](../README.md) + +## Copy & Paste + +## Documentation + +- Copy paste is done in the `SceneManager` and `MouseControls` classes. +- In `SceneManager` the async `copy` function sets the copied object to whatever the `MouseControls` class has selected. +- In `SceneManager` the async `paste` function duplicates the threejs object and updates the outliner while coping the newly created object. + +## Hacks + +- Tempararly disabled copy and paste of characters because the UI on the timeline is not updateing properly. + +## Roadmap + +- Fix characters. diff --git a/docs/README.md b/docs/README.md index ea76fe7d57..8d21bd66e7 100644 --- a/docs/README.md +++ b/docs/README.md @@ -5,3 +5,4 @@ This is the official documentation for the storyteller studio engine. ## Documentation Links [Skyboxes](./DOCS/SKYBOXES.md) +[Copy & Paste](./DOCS/COPYPASTE.md)