fix m_sitAvatarHeight to be half size.z, reduced default to a more resonable value ( 1m);

avinationmerge
UbitUmarov 2012-05-19 18:10:44 +01:00
parent 10889c86d9
commit 2767574d0f
1 changed files with 1 additions and 1 deletions

View File

@ -2032,7 +2032,7 @@ namespace OpenSim.Region.Framework.Scenes
// m_log.DebugFormat("[SCENE PRESENCE]: {0} {1}", SitTargetisSet, SitTargetUnOccupied); // m_log.DebugFormat("[SCENE PRESENCE]: {0} {1}", SitTargetisSet, SitTargetUnOccupied);
if (PhysicsActor != null) if (PhysicsActor != null)
m_sitAvatarHeight = PhysicsActor.Size.Z; m_sitAvatarHeight = PhysicsActor.Size.Z * 0.5f;
bool canSit = false; bool canSit = false;
pos = part.AbsolutePosition + offset; pos = part.AbsolutePosition + offset;