mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
* Fixes mantis #3070
This commit is contained in:
@@ -2213,6 +2213,14 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
/// <param name="visualParam"></param>
|
||||
public void SetAppearance(byte[] texture, List<byte> visualParam)
|
||||
{
|
||||
if (m_physicsActor != null)
|
||||
{
|
||||
// This may seem like it's redundant, remove the avatar from the physics scene
|
||||
// just to add it back again, but it saves us from having to update
|
||||
// 3 variables 10 times a second.
|
||||
m_scene.PhysicsScene.RemoveAvatar(m_physicsActor);
|
||||
AddToPhysicalScene();
|
||||
}
|
||||
m_appearance.SetAppearance(texture, visualParam);
|
||||
SetHeight(m_appearance.AvatarHeight);
|
||||
m_scene.CommsManager.AvatarService.UpdateUserAppearance(m_controllingClient.AgentId, m_appearance);
|
||||
|
||||
Reference in New Issue
Block a user