mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 00:47:53 +00:00
Copy and paste documentation (#639)
This commit is contained in:
1 parent
a9084b9ed8
commit
5b22bf6928
3 files changed
+23
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
@@ -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)
|
||||
Reference in new issue
Block a user