Tempering scroll and masterworking

Does the use of a tempering scroll reset only the tempers or does it also reset the current masterworking on an item? I want to use a temper scroll but don’t want it to reset my 12/12 masterwork on my item.