Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-05-14 11:28:44 +00:00
parent 2ad24c76a8
commit a7fffd7017
+4
View File
@@ -117,8 +117,11 @@ function XRModel({ url }: { url: string }) {
const rotYRad = (fineTuning.rotY * Math.PI) / 180;
const rotZRad = (fineTuning.rotZ * Math.PI) / 180;
const s = fineTuning.scale ?? 1;
const scaleRatio = useModelStore((st) => st.scaleRatio);
const renderFactor = scaleRatio?.factor ?? 1;
return (
<group scale={[renderFactor, renderFactor, renderFactor]}>
<group
ref={ref}
position={[
@@ -131,6 +134,7 @@ function XRModel({ url }: { url: string }) {
>
<primitive object={scene} />
</group>
</group>
);
}