Fix: Compiler error due to uninitialized variable

Came with d4ce2dfe60
This commit is contained in:
Pratik Borhade
2024-07-31 16:13:53 +05:30
parent a3c10a4e62
commit a95adea20a

View File

@@ -213,7 +213,7 @@ class Cameras {
if (reconstruction->camnr) {
const MovieReconstructedCamera *camera = reconstruction->cameras;
float3 v0, v1;
float3 v0, v1 = float3(0.0f);
for (int a = 0; a < reconstruction->camnr; a++, camera++) {
v0 = v1;
v1 = math::transform_point(camera_mat, float3(camera->mat[3]));