!2352 变更:相机透视的视野最小值为1

pull/2355/head
林三 1 year ago committed by ChenX
parent fec6c2508e
commit 5b19a40822

@ -126,15 +126,16 @@ export default class CameraSetting extends Component
<div className='CameraVison'>
<Slider
disabled={IsOrthographicCamera}
value={MathUtils.clamp(CameraSettingStore.cameraFov, 30, 120)}
value={MathUtils.clamp(CameraSettingStore.cameraFov, 1, 120)}
max={120}
min={30}
min={1}
onChange={(e: number) =>
{
if (e <= 35) e = 30;
if (e >= 55 && e <= 65) e = 60;
if (e >= 85 && e <= 95) e = 90;
if (e >= 115) e = 120;
if (e <= 5) e = 1;
else if (e >= 25 && e <= 35) e = 30;
else if (e >= 55 && e <= 65) e = 60;
else if (e >= 85 && e <= 95) e = 90;
else if (e >= 115) e = 120;
this.AlterCameraVision(e);
}}
/>
@ -167,7 +168,7 @@ export default class CameraSetting extends Component
tabIndex={1}
allowNumericCharactersOnly={true}
value={CameraSettingStore.cameraFov}
min={30}
min={1}
max={120}
disabled={IsOrthographicCamera}
onValueChange={(e) =>

@ -174,15 +174,15 @@
}
&:nth-child(2)
{
left: -9px;
left: 35px;
}
&:nth-child(3)
{
left: 51px;
left: 81px;
}
&:nth-child(4)
{
left: 111px;
left: 126px;
}
&:nth-child(5)
{

Loading…
Cancel
Save