fixed coding style
prevent save undo action while drag in material