修改
This commit is contained in:
parent
0a1e95ef90
commit
517f861869
@ -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<STrackHead>(CutTimeline->TrackGroupInstances[i].Head)->TrackData.TrackType == ETrackType::ProjectorTrack)
|
||||
{
|
||||
|
||||
TArray<FClipData> TempClipData = StaticCastSharedPtr<STrackHead>(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<STrackHead>(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");
|
||||
|
Loading…
Reference in New Issue
Block a user