Fix a bug in Quat and in the texture tool.