For SH-1308 Edit Physics sometimes messes up camera

Removed camera switching for phyics wearables.
meow-7.2.2
Loren Shih 2011-04-06 12:30:39 -04:00
parent 7054aaba6d
commit ee3048285f
1 changed files with 6 additions and 0 deletions

View File

@ -1196,6 +1196,12 @@ void LLPanelEditWearable::onTabExpandedCollapsed(const LLSD& param, U8 index)
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)
{