Fix groups with export=false still exporting in bedrock format

This commit is contained in:
JannisX11 2023-07-23 14:01:02 +02:00
parent d974446e59
commit ea483abf23
3 changed files with 2 additions and 3 deletions

View File

@ -779,7 +779,7 @@ function calculateVisibleBox() {
return template;
}
function compileGroup(g) {
if (g.type !== 'group') return;
if (g.type !== 'group' || g.export == false) return;
if (!settings.export_empty_groups.value && !g.children.find(child => child.export)) return;
//Bone
var bone = {}

View File

@ -164,7 +164,7 @@ var codec = new Codec('bedrock_old', {
}
groups.forEach(function(g) {
if (g.type !== 'group') return;
if (g.type !== 'group' || g.export == false) return;
if (!settings.export_empty_groups.value && !g.children.find(child => child.export)) return;
//Bone
var bone = {}

View File

@ -270,7 +270,6 @@ const UVEditor = {
addEventListeners(document, 'mousedown touchstart', clickElsewhere)
},
removePastingOverlay() {
console.trace('RM')
Painter.selection.overlay.detach();
UVEditor.vue.copy_overlay.state = 'off';
delete Painter.selection.overlay;