GEditor->SetPivot() no longer working

Early this year I made a small plugin for centering the editors pivot based on the bounding box of an actor. I’m trying to update it, and I’ve managed to get it to compile but the line that changed the pivots location no longer seems to be working:

FVector fLoc = (SmallLoc + LargeLoc) / 2;
	
GEditor->SetPivot(fLoc, false, false, true);

Is there something else I need to do to make it work? (It’s being called on USelection::SelectionChangedEvent)