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:
parent
dff071c2a8
commit
52ee83e7e8
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user