Fix another warning

pull/5194/head
Gargaj 2023-08-05 15:43:31 +02:00 committed by GitHub
parent 8312b31d27
commit 49ed0711d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -446,7 +446,7 @@ void FBXConverter::ConvertCamera(const Camera &cam, const std::string &orig_name
out_camera->mHorizontalFOV = static_cast<float>(half_fov_rad); out_camera->mHorizontalFOV = static_cast<float>(half_fov_rad);
} else { } else {
// FBX fov is full-view degrees. We want half-view radians. // FBX fov is full-view degrees. We want half-view radians.
out_camera->mHorizontalFOV = AI_DEG_TO_RAD(fov_deg) * 0.5; out_camera->mHorizontalFOV = AI_DEG_TO_RAD(fov_deg) * 0.5f;
} }
out_camera->mClipPlaneNear = cam.NearPlane(); out_camera->mClipPlaneNear = cam.NearPlane();