With this code, local rotations would be discarded when leaving the cell and coming back (or reloading the savegame). Is that the case in vanilla?