Don't set camera parent

This commit is contained in:
in0finite 2019-04-29 02:13:11 +02:00
parent 7a6c6b4aa8
commit c3bd5362d5

View file

@ -70,13 +70,6 @@ namespace SanAndreasUnity.Behaviours.Peds.States
m_model.VehicleParentOffset = Vector3.zero;
// change camera parent
if (m_ped.IsControlledByLocalPlayer) {
if (m_ped.Camera != null) {
m_ped.Camera.transform.SetParent (null, true);
}
}
// switch to stand state
m_ped.SwitchState<StandState> ();