|
@@ -3042,13 +3042,29 @@
|
|
|
}
|
|
|
LenVideoStitchDirction dirction = LenVideoStitchDirctionLeft;
|
|
|
if (self.panoramOrientationGuideView.selectedItemIndex == PanoramaOrientationViewUp) {
|
|
|
- dirction = LenVideoStitchDirctionUp;
|
|
|
+ if (self.currentTgDirection == TgDirectionDown) {
|
|
|
+ dirction = LenVideoStitchDirctionDown;
|
|
|
+ } else {
|
|
|
+ dirction = LenVideoStitchDirctionUp;
|
|
|
+ }
|
|
|
} else if (self.panoramOrientationGuideView.selectedItemIndex == PanoramaOrientationViewDown) {
|
|
|
- dirction = LenVideoStitchDirctionDown;
|
|
|
+ if (self.currentTgDirection == TgDirectionDown) {
|
|
|
+ dirction = LenVideoStitchDirctionUp;
|
|
|
+ } else {
|
|
|
+ dirction = LenVideoStitchDirctionDown;
|
|
|
+ }
|
|
|
} else if (self.panoramOrientationGuideView.selectedItemIndex == PanoramaOrientationViewLeft) {
|
|
|
- dirction = LenVideoStitchDirctionLeft;
|
|
|
+ if (self.currentTgDirection == TgDirectionDown) {
|
|
|
+ dirction = LenVideoStitchDirctionRight;
|
|
|
+ } else {
|
|
|
+ dirction = LenVideoStitchDirctionLeft;
|
|
|
+ }
|
|
|
} else if (self.panoramOrientationGuideView.selectedItemIndex == PanoramaOrientationViewRight) {
|
|
|
- dirction = LenVideoStitchDirctionRight;
|
|
|
+ if (self.currentTgDirection == TgDirectionDown) {
|
|
|
+ dirction = LenVideoStitchDirctionLeft;
|
|
|
+ } else {
|
|
|
+ dirction = LenVideoStitchDirctionRight;
|
|
|
+ }
|
|
|
} else {
|
|
|
dirction = LenVideoStitchDirctionAny;
|
|
|
}
|