props
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user