Fix viewport change detection (#8323)

# Objective

Fix #8321

## Solution

The `old_viewport_size` that is used to detect whether the viewport has
changed was not being updated and thus always `None`.
This commit is contained in:
ira 2023-04-10 22:41:32 +02:00 committed by GitHub
parent dff071c2a8
commit 52ee83e7e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -555,6 +555,10 @@ pub fn camera_system<T: CameraProjection + Component>(
}
}
}
if camera.computed.old_viewport_size != viewport_size {
camera.computed.old_viewport_size = viewport_size;
}
}
}