mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
refactor: move multiple class to set avatar height into associated SP.AddToPhysicalScene()
This commit is contained in:
@@ -214,7 +214,7 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
|
||||
changed = sp.Appearance.SetVisualParams(visualParams);
|
||||
if (sp.Appearance.AvatarHeight > 0)
|
||||
sp.SetHeight(sp.Appearance.AvatarHeight);
|
||||
}
|
||||
}
|
||||
|
||||
// Process the baked texture array
|
||||
if (textureEntry != null)
|
||||
|
||||
@@ -900,9 +900,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
}
|
||||
AbsolutePosition = pos;
|
||||
|
||||
if (m_appearance.AvatarHeight > 0)
|
||||
SetHeight(m_appearance.AvatarHeight);
|
||||
|
||||
AddToPhysicalScene(isFlying);
|
||||
|
||||
if (m_forceFly)
|
||||
@@ -1036,10 +1033,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
AbsolutePosition = pos;
|
||||
AddToPhysicalScene(isFlying);
|
||||
|
||||
// FIXME: Move me into AddToPhysicalScene
|
||||
if (m_appearance.AvatarHeight > 0)
|
||||
SetHeight(m_appearance.AvatarHeight);
|
||||
|
||||
SendTerseUpdateToAllClients();
|
||||
}
|
||||
|
||||
@@ -1053,9 +1046,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
AbsolutePosition = pos;
|
||||
AddToPhysicalScene(isFlying);
|
||||
|
||||
if (m_appearance.AvatarHeight > 0)
|
||||
SetHeight(m_appearance.AvatarHeight);
|
||||
|
||||
SendTerseUpdateToAllClients();
|
||||
}
|
||||
|
||||
@@ -1825,12 +1815,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
m_parentID = 0;
|
||||
SendAvatarDataToAllAgents();
|
||||
m_requestedSitTargetID = 0;
|
||||
|
||||
if (m_physicsActor != null)
|
||||
{
|
||||
if (m_appearance.AvatarHeight > 0)
|
||||
SetHeight(m_appearance.AvatarHeight);
|
||||
}
|
||||
}
|
||||
|
||||
Animator.TrySetMovementAnimation("STAND");
|
||||
@@ -3313,6 +3297,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
m_physicsActor.OnOutOfBounds += OutOfBoundsCall; // Called for PhysicsActors when there's something wrong
|
||||
m_physicsActor.SubscribeEvents(500);
|
||||
m_physicsActor.LocalID = LocalId;
|
||||
|
||||
SetHeight(m_appearance.AvatarHeight);
|
||||
}
|
||||
|
||||
private void OutOfBoundsCall(Vector3 pos)
|
||||
|
||||
Reference in New Issue
Block a user