Fix syncing issue with edit sessions

This commit is contained in:
JannisX11 2020-07-16 21:50:08 +02:00
parent c7d84311e9
commit c54641538c
3 changed files with 8 additions and 4 deletions

View File

@ -24,7 +24,7 @@
<script>
if (typeof module === 'object') {window.module = module; module = undefined;}//jQuery Fix
const isApp = typeof require !== 'undefined';
const appVersion = '3.6.1';
const appVersion = '3.6.2';
</script>
<div id="loading_error_message" style="display: none;">
<div>An error occurred while loading Blockbench</div>

View File

@ -277,7 +277,7 @@ class Cube extends NonGroup {
}
delete this;
}
getUndoCopy(aspects) {
getUndoCopy(aspects = 0) {
var copy = new Cube(this)
if (aspects.uv_only) {
copy = {
@ -286,6 +286,9 @@ class Cube extends NonGroup {
mirror_uv: copy.mirror_uv,
}
}
for (let face_id in copy.faces) {
copy.faces[face_id] = copy.faces[face_id].getSaveCopy()
}
copy.uuid = this.uuid
copy.type = this.type;
delete copy.parent;

View File

@ -1,7 +1,7 @@
{
"name": "Blockbench",
"description": "Model editing and animation software",
"version": "3.6.1",
"version": "3.6.2",
"license": "GPL-3.0-or-later",
"author": {
"name": "JannisX11",
@ -90,7 +90,8 @@
"scripts": {
"dev": "electron .",
"dist": "electron-builder",
"beta": "electron-builder --windows portable"
"beta": "electron-builder --windows portable",
"webapp": "git checkout gh-pages && git merge master && git push && git checkout master"
},
"devDependencies": {
"electron": "8.2.4",