Skip to content
Snippets Groups Projects
Commit 9b8216b2 authored by Jonathan Ehret's avatar Jonathan Ehret
Browse files

bugfix to prevent studysetup.json from being accidently overwritten

parent 796ded2b
No related branches found
No related tags found
No related merge requests found
......@@ -101,10 +101,16 @@ void ASFStudySetup::PreSave(const ITargetPlatform* TargetPlatform)
#if WITH_EDITOR
void ASFStudySetup::PostEditChangeProperty(FPropertyChangedEvent& MovieSceneBlends)
{
// PostEditChangeProperty() is called twice when actor is drag-'n'-dropped into level because:
// First a preview actor with transient values is created when dragging out of list
// Then the final actor is created once dropped into map.
// We only want to execute the code for the latter actor -> Workaround:
if (!HasAllFlags(RF_Transient)) {
//Re-enabled to avoid accidental data loss
SaveToJson();
Super::PostEditChangeProperty(MovieSceneBlends);
}
}
#endif
USFStudyPhase* ASFStudySetup::AddStudyPhase(FString InPhaseName)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment