[core] Skip redundant spherical mercator variable updates in {ease,fly}To
This commit is contained in:
@@ -132,9 +132,6 @@ void Transform::easeTo(const CameraOptions& camera, const AnimationOptions& anim
|
||||
Duration duration = animation.duration ? *animation.duration : Duration::zero();
|
||||
|
||||
const double startWorldSize = state.worldSize();
|
||||
state.Bc = startWorldSize / util::DEGREES_MAX;
|
||||
state.Cc = startWorldSize / util::M2PI;
|
||||
|
||||
const double startScale = state.scale;
|
||||
const double startAngle = state.angle;
|
||||
const double startPitch = state.pitch;
|
||||
@@ -292,8 +289,6 @@ void Transform::flyTo(const CameraOptions &camera, const AnimationOptions &anima
|
||||
}
|
||||
|
||||
const double startWorldSize = state.worldSize();
|
||||
state.Bc = startWorldSize / util::DEGREES_MAX;
|
||||
state.Cc = startWorldSize / util::M2PI;
|
||||
|
||||
state.panning = true;
|
||||
state.scaling = true;
|
||||
|
||||
Reference in New Issue
Block a user