Changes
Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
@@ -118,8 +118,11 @@ function GLBModel({ url }: { url: string }) {
|
|||||||
const rotYRad = (fineTuning.rotY * Math.PI) / 180;
|
const rotYRad = (fineTuning.rotY * Math.PI) / 180;
|
||||||
const rotZRad = (fineTuning.rotZ * Math.PI) / 180;
|
const rotZRad = (fineTuning.rotZ * Math.PI) / 180;
|
||||||
const s = fineTuning.scale ?? 1;
|
const s = fineTuning.scale ?? 1;
|
||||||
|
const scaleRatio = useModelStore((st) => st.scaleRatio);
|
||||||
|
const renderFactor = scaleRatio?.factor ?? 1;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<group scale={[renderFactor, renderFactor, renderFactor]}>
|
||||||
<group
|
<group
|
||||||
ref={ref}
|
ref={ref}
|
||||||
position={[
|
position={[
|
||||||
@@ -132,6 +135,7 @@ function GLBModel({ url }: { url: string }) {
|
|||||||
>
|
>
|
||||||
<primitive object={scene} />
|
<primitive object={scene} />
|
||||||
</group>
|
</group>
|
||||||
|
</group>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user