/Engine/Source/Editor/UnrealEd/Public/EditorViewportClient.h
Use EndEndUsing to manually reset the Using state so that the next call to Using will commit a new record. Useful when you know a transition has occurred like the mouse button has been released.
static void EndFrame()