Commits

Anonymous committed f62698e

For SH-1308 Edit Physics sometimes messes up camera

Removed camera switching for phyics wearables.

  • Participants
  • Parent commits d7fcefa

Comments (0)

Files changed (1)

indra/newview/llpaneleditwearable.cpp

 
 void LLPanelEditWearable::changeCamera(U8 subpart)
 {
+	// Don't change the camera if this type doesn't have a camera switch.
+	// Useful for wearables like physics that don't have an associated physical body part.
+	if (LLWearableType::getDisableCameraSwitch(mWearablePtr->getType()))
+	{
+		return;
+	}
         const LLEditWearableDictionary::WearableEntry *wearable_entry = LLEditWearableDictionary::getInstance()->getWearable(mWearablePtr->getType());
         if (!wearable_entry)
         {