Fix new meshes not syncing correctly in sessions

Fix error message when using motion trails
This commit is contained in:
JannisX11 2022-05-10 23:08:39 +02:00
parent 2df6e73dc5
commit 23c689201f
3 changed files with 3 additions and 0 deletions

View File

@ -899,6 +899,7 @@ const Animator = {
target = Project.motion_trail_lock && OutlinerNode.uuids[Project.motion_trail_lock];
if (!target) target = Group.selected || NullObject.selected[0];
}
if (!target) return;
let animation = Animation.selected;
let currentTime = Timeline.time;
let step = Timeline.getStep();

View File

@ -390,6 +390,7 @@ class Mesh extends OutlinerElement {
}
}
copy.uuid = this.uuid;
copy.type = this.type;
delete copy.parent;
for (let fkey in copy.faces) {
delete copy.faces[fkey].mesh;

View File

@ -54,6 +54,7 @@ class TextureMesh extends OutlinerElement {
getUndoCopy() {
var copy = new TextureMesh(this)
copy.uuid = this.uuid;
copy.type = this.type;
delete copy.parent;
return copy;
}