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");