More guards around SetHeight.
parent
98e7ea015c
commit
312b0f91c4
|
@ -1480,7 +1480,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
m_parentID = 0;
|
||||
SendFullUpdateToAllClients();
|
||||
m_requestedSitTargetID = 0;
|
||||
if (m_physicsActor != null)
|
||||
if ((m_physicsActor != null) && (m_avHeight > 0))
|
||||
{
|
||||
SetHeight(m_avHeight);
|
||||
}
|
||||
|
@ -2241,6 +2241,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
AddToPhysicalScene(m_physicsActor.Flying);
|
||||
}
|
||||
m_appearance.SetAppearance(texture, visualParam);
|
||||
if (m_appearance.AvatarHeight > 0)
|
||||
SetHeight(m_appearance.AvatarHeight);
|
||||
m_scene.CommsManager.AvatarService.UpdateUserAppearance(m_controllingClient.AgentId, m_appearance);
|
||||
|
||||
|
|
Loading…
Reference in New Issue