lxy 1 년 전
부모
커밋
d6282e469a
1개의 변경된 파일20개의 추가작업 그리고 4개의 파일을 삭제
  1. 20 4
      LenzCameraNativeModuleForRN/Classes/inner/PCSBaseViewController/PCSBaseViewController.m

+ 20 - 4
LenzCameraNativeModuleForRN/Classes/inner/PCSBaseViewController/PCSBaseViewController.m

@@ -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;
             }