Guarding the new call to SetHeight in MakeRoot, so that ODE doesn't complain when it's 0.

0.6.3-post-fixes
diva 2009-02-15 06:12:11 +00:00
parent 52c5b75174
commit 9b19c65450
1 changed files with 1 additions and 1 deletions

View File

@ -845,7 +845,7 @@ namespace OpenSim.Region.Framework.Scenes
AbsolutePosition = pos; AbsolutePosition = pos;
AddToPhysicalScene(isFlying); AddToPhysicalScene(isFlying);
if (m_appearance != null) if ((m_appearance != null) && (m_appearance.AvatarHeight > 0))
SetHeight(m_appearance.AvatarHeight); SetHeight(m_appearance.AvatarHeight);
// Don't send an animation pack here, since on a region crossing this will sometimes cause a flying // Don't send an animation pack here, since on a region crossing this will sometimes cause a flying