mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
Fix new meshes not syncing correctly in sessions
Fix error message when using motion trails
This commit is contained in:
parent
2df6e73dc5
commit
23c689201f
@ -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();
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user