[core] Don't redo placement for zoom changes at low pitch.
Fixes issue #9996 Port of GL-JS #5284
This commit is contained in:
@@ -13,9 +13,9 @@ public:
|
||||
bool operator==(const PlacementConfig& rhs) const {
|
||||
return angle == rhs.angle &&
|
||||
pitch == rhs.pitch &&
|
||||
cameraToCenterDistance == rhs.cameraToCenterDistance &&
|
||||
(pitch * util::RAD2DEG < 25 || cameraToTileDistance == rhs.cameraToTileDistance) &&
|
||||
debug == rhs.debug;
|
||||
debug == rhs.debug &&
|
||||
((pitch * util::RAD2DEG < 25) ||
|
||||
(cameraToCenterDistance == rhs.cameraToCenterDistance && cameraToTileDistance == rhs.cameraToTileDistance));
|
||||
}
|
||||
|
||||
bool operator!=(const PlacementConfig& rhs) const {
|
||||
|
||||
Reference in New Issue
Block a user