Added missing state updates when setting camera variables.