[core] make padding optional when camera position is requested.

When padding is not provided, the current one that's cached in the TransformState is going to be returned.
This commit is contained in:
Łukasz Paczos
2019-08-21 18:15:38 +02:00
committed by Łukasz Paczos
parent 6a4e431dbe
commit e5c219d035
6 changed files with 7 additions and 7 deletions

View File

@@ -63,7 +63,7 @@ void Transform::resize(const Size size) {
#pragma mark - Camera
CameraOptions Transform::getCameraOptions(const EdgeInsets& padding) const {
CameraOptions Transform::getCameraOptions(optional<EdgeInsets> padding) const {
return state.getCameraOptions(padding);
}