Jelajahi Sumber

fix: #trello(【创意模板】导入图片素材后进入裁剪页,未经过任何处理点击确定键,合成后再返回,没有播放过的素材视频区域会一片黑)

Melody 5 tahun lalu
induk
melakukan
2559ed1794

+ 4 - 4
SuperShow/UI/Template/WSSCreativeTemplateEditViewController.swift

@@ -212,11 +212,11 @@ private extension WSSCreativeTemplateEditViewController {
                                             videoSize: videoSize,
                                             videoDegress: WSSMediaOperationTool.degressFromVideo(asset: videoModel.vaildVideoAsset),
                                             mediaModel: mediaModel)
-            videoModel.cropModel = cropModel
-
+            
             // 创建临时视图做初始化
-            _ = WSSVideoCropView(frame: videoCropView?.frame ?? CGRect.zero, videoCropModel: cropModel)
-
+            let cropView = WSSVideoCropView(frame: videoCropView?.frame ?? CGRect.zero, videoCropModel: cropModel)
+            cropView.changeCropModel(cropModel, isInit: true)
+            videoModel.cropModel = cropModel
         } else {
             //
         }