This commit is contained in:
2026-09-28 22:56:40 +02:00
parent 733b62194a
commit 27a42a076b
2 changed files with 10 additions and 4 deletions
+6 -3
View File
@@ -4001,7 +4001,12 @@
const explicit = model.display?.[context];
const data = explicit || (slot === 'left' ? model.display?.thirdperson_righthand : null) || {};
const rotation = v3(data.rotation), translation = v3(data.translation), scale = v3(data.scale, 1);
if (slot === 'left' && !explicit) { translation[0] *= -1; rotation[1] *= -1; rotation[2] *= -1; }
// Minecraft mirrors the selected display transform for left-hand rendering.
if (slot === 'left') {
translation[0] = -translation[0] || 0;
rotation[1] = -rotation[1] || 0;
rotation[2] = -rotation[2] || 0;
}
return { rotation, translation, scale };
}
@@ -4223,8 +4228,6 @@
centered.add(new THREE.Mesh(geometry, material));
}
}
// GeckoLib -> Blockbench coordinate conversion mirrors model X, including attached items.
root.scale.x = -1;
return root;
} catch (error) { disposePropMesh(root); throw error; }
}