Restore some context overrides which were originally happening in 2.79. Made it a bit more paranoid, by storing old values and restoring them afterwards, so the context is not being changed at the end of the function.
Restore some context overrides which were originally happening in 2.79. Made it a bit more paranoid, by storing old values and restoring them afterwards, so the context is not being changed at the end of the function.