mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-01-30 15:42:42 +08:00
Fix #1686 skin poses inconsistent when cubes invisible
This commit is contained in:
parent
14d8a9b9c2
commit
c346ffa18a
@ -457,11 +457,6 @@ Interface.definePanels(function() {
|
||||
Group.all.forEach(group => {
|
||||
if (!group.skin_original_origin) return;
|
||||
let offset = group.origin.slice().V3_subtract(group.skin_original_origin);
|
||||
group.forEachChild(cube => {
|
||||
cube.from.V3_add(offset);
|
||||
cube.to.V3_add(offset);
|
||||
cube.origin.V3_add(offset);
|
||||
}, Cube)
|
||||
group.origin.V3_set(group.skin_original_origin);
|
||||
})
|
||||
this.pose = pose;
|
||||
@ -471,10 +466,15 @@ Interface.definePanels(function() {
|
||||
let group = Group.all.find(g => g.name == name);
|
||||
if (group) {
|
||||
group.extend({rotation: angles[name].rotation || angles[name]});
|
||||
if (angles[name].offset) group.origin.V3_add(angles[name].offset);
|
||||
if (angles[name].offset) {
|
||||
group.origin.V3_add(angles[name].offset);
|
||||
}
|
||||
}
|
||||
}
|
||||
Canvas.updateAllBones();
|
||||
Canvas.updateView({
|
||||
groups: Group.all,
|
||||
group_aspects: {transform: true}
|
||||
})
|
||||
}
|
||||
},
|
||||
template: `
|
||||
|
@ -355,7 +355,6 @@ const Screencam = {
|
||||
Blockbench.setProgress(getProgress());
|
||||
frame_label.textContent = frames + ' - ' + (interval*frames/1000).toFixed(2) + 's';
|
||||
|
||||
console.log(getProgress())
|
||||
if (getProgress() >= 1) {
|
||||
endRecording(true);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user