From 3d25b9adb50a5ed146121202fd0f25861b31b9ec Mon Sep 17 00:00:00 2001
From: Seraph Linden <none@none>
Date: Sun, 3 Apr 2011 22:10:41 -0400
Subject: Fixed issue where changes in physics params were not being
 transmitted to other avatars. Fixed issue where left/right was appearing in
 non-female edit physics.

---
 indra/newview/character/avatar_lad.xml | 4 ++++
 indra/newview/llvoavatarself.cpp       | 7 +++++++
 2 files changed, 11 insertions(+)

(limited to 'indra')

diff --git a/indra/newview/character/avatar_lad.xml b/indra/newview/character/avatar_lad.xml
index d0158cf9f8..85899603ee 100644
--- a/indra/newview/character/avatar_lad.xml
+++ b/indra/newview/character/avatar_lad.xml
@@ -12224,6 +12224,7 @@ render_pass="bump">
    <param
      id="10029"
      group="0"
+     sex="female"
      name="Breast_Physics_LeftRight_Max_Effect"
      label="Breast Physics LeftRight Max Effect"
      wearable="physics"
@@ -12236,6 +12237,7 @@ render_pass="bump">
     <param
      id="10030"
      group="0"
+     sex="female"
      name="Breast_Physics_LeftRight_Spring"
      label="Breast Physics LeftRight Spring"
      wearable="physics"
@@ -12248,6 +12250,7 @@ render_pass="bump">
     <param
      id="10031"
      group="0"
+     sex="female"
      name="Breast_Physics_LeftRight_Gain"
      label="Breast Physics LeftRight Gain"
      wearable="physics"
@@ -12260,6 +12263,7 @@ render_pass="bump">
     <param
      id="10032"
      group="0"
+     sex="female"
      name="Breast_Physics_LeftRight_Damping"
      label="Breast Physics LeftRight Damping"
      wearable="physics"
diff --git a/indra/newview/llvoavatarself.cpp b/indra/newview/llvoavatarself.cpp
index 5f9e343907..799ed433d7 100644
--- a/indra/newview/llvoavatarself.cpp
+++ b/indra/newview/llvoavatarself.cpp
@@ -1017,6 +1017,13 @@ void LLVOAvatarSelf::wearableUpdated( LLWearableType::EType type, BOOL upload_re
 			}
 		}
 	}
+	
+	// Physics type has no associated baked textures, but change of params needs to be sent to
+	// other avatars.
+	if (type == LLWearableType::WT_PHYSICS)
+	  {
+	    gAgent.sendAgentSetAppearance();
+	  }
 }
 
 //-----------------------------------------------------------------------------
-- 
cgit v1.2.3