Added bone flag to scaling

Added bone flags to determine if the scale change is due to a bone scale function or to an overall scale.