[4.3] FScopedTransaction Use Pattern That worked in 4.2 crashes Editor in 4.3

Dear Friends at Epic,

I was apply setting objects to RF_Transactional and t hen using this sort of undo pattenr:

const FScopedTransaction Transaction( TEXT("Snap"), LOCTEXT( "VictoryGame", "Victory Vertex Snap" ), MyActor->GetRootComponent()  );
MyActor>GetRootComponent()->Modify();
	
MyActor->Modify();

the above code runs without crashing anything

but when I press CTRL + Z in editor to undo a undo action I set using above pattern

it crashes the editor!

Without any log information!

One of those really hard crashes where it just says UE4 Editor has stopped working.

Any ideas why this is so?

Rama

#Solution

Moving over to this use pattern resolved the matter

:slight_smile:

const FScopedTransaction Transaction( NSLOCTEXT("Snap","VictoryGame", "Victory Vertex Snap" )  );
VictoryEngine->VSelectedActor->Modify();

Rama