fixed resetting material with material tool

Fixes the annoyingness of not being able to reset material after misclick