From 517f86186933c51c89cdddd6db176fa9bdd88e10 Mon Sep 17 00:00:00 2001 From: Sch <3516520171@qq.com> Date: Mon, 4 Sep 2023 23:16:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/Cut5/Widgets/SCutMainWindow.cpp | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/Source/Cut5/Widgets/SCutMainWindow.cpp b/Source/Cut5/Widgets/SCutMainWindow.cpp index aa74a1d..b899932 100644 --- a/Source/Cut5/Widgets/SCutMainWindow.cpp +++ b/Source/Cut5/Widgets/SCutMainWindow.cpp @@ -1812,25 +1812,11 @@ tinyxml2::XMLElement* SCutMainWindow::GetVideoElement(tinyxml2::XMLElement* Pare - ProjectorEvents.Add(FProjectorEvent{ FUtils::GetMsFromString(FGlobalData::GetTimeData(EncodeVideoInfo.ClipStartFrame)), 1 }); + ProjectorEvents.Add(FProjectorEvent{ "0", 1 }); for (int32 i = 0; i < CutTimeline->TrackGroupInstances.Num(); i++) { if (StaticCastSharedPtr(CutTimeline->TrackGroupInstances[i].Head)->TrackData.TrackType == ETrackType::ProjectorTrack) { - - TArray TempClipData = StaticCastSharedPtr(CutTimeline->TrackGroupInstances[i].Head)->TrackData.ClipData; - Sort(TempClipData.GetData(), TempClipData.Num(), [](const FClipData& A, const FClipData& B) - { - return A.ClipStartFrame < B.ClipStartFrame; - }); - if (TempClipData.Num() > 0) - { - if (TempClipData[0].ClipStartFrame != 0) - { - ProjectorEvents.Add({"0", 1 }); - } - } - for (FClipData& ClipData : StaticCastSharedPtr(CutTimeline->TrackGroupInstances[i].Head)->TrackData.ClipData) { if (ClipData.ClipStartFrame > EncodeVideoInfo.ClipStartFrame - 10 && ClipData.ClipEndFrame < EncodeVideoInfo.ClipEndFrame + 10) @@ -2267,8 +2253,7 @@ tinyxml2::XMLElement* SCutMainWindow::GetGradientLight(tinyxml2::XMLElement* Par *FUtils::GetMsFromString(FGlobalData::GetTimeData(ClipData.ClipStartFrame))))); NewSpeicalEffect->InsertNewChildElement("Cycle") - ->InsertNewText(TCHAR_TO_UTF8(*FString::Printf(TEXT("%ls"), - *FUtils::GetMsFromString(FGlobalData::GetTimeData(ClipData.PresetsCustomData.Cursors[0].CursorFrameOffset))))); + ->InsertNewText("0"); } int32 Index = 0; @@ -2296,10 +2281,7 @@ tinyxml2::XMLElement* SCutMainWindow::GetGradientLight(tinyxml2::XMLElement* Par *FUtils::GetMsFromString(FGlobalData::GetTimeData(ClipData.ClipStartFrame + ClipData.PresetsCustomData.Cursors[Index].CursorFrameOffset))))); NewSpeicalEffect->InsertNewChildElement("Cycle") - ->InsertNewText(TCHAR_TO_UTF8(*FString::Printf(TEXT("%ls"), - *FUtils::GetMsFromString(FGlobalData::GetTimeData( - (ClipData.ClipEndFrame - ClipData.ClipStartFrame) - - ClipData.PresetsCustomData.Cursors[Index].CursorFrameOffset))))); + ->InsertNewText("0"); break; } tinyxml2::XMLElement* NewSpeicalEffect = Parent->InsertNewChildElement("Special_Effect");