transform has two bits for the flag, so that the global and local transforms can be modified separately, while the local transform will be used if both are changed.