Export camera path (#398)

* export button working

* view changes

* adding copy to clipboard feature

* camera choice dropdown

* going to add script saving next

* copy paste working. need to add aspect ratio

* aspect overlay kind of working

* lint

* aspect ratio fixed. version specified

* merge

* openrelay back
This commit is contained in:
Ethan Weber authored and GitHub committed 2022-09-13 11:33:58 -07:00
1 parent f21375ff1b
commit 9bc39d895c
21 files changed
+676 -196

No files matched your search

+3 -2
View File
@@ -28,7 +28,8 @@ function dispose(object) {
export default class SceneNode {
constructor(object) {
this.object = object;
this.metadata = {}; // relevant metadata for the object
this.object = object; // three.js objects
this.children = {};
for (const c of this.object.children) {
this.add_child(c);
@@ -108,7 +109,7 @@ export default class SceneNode {
delete(path) {
if (path.length === 0) {
console.error("Can't delete an empty path");
console.error("Can't delete an empty path.");
} else {
const parent = this.find(path.slice(0, path.length - 1));
const name = path[path.length - 1];