diff options
| author | Dave Parks <davep@lindenlab.com> | 2011-04-19 16:35:37 -0500 |
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2011-04-19 16:35:37 -0500 |
| commit | 5cf5e4bb888e67dc1dd79eaec491b242a7f3a903 (patch) | |
| tree | 7b43bff3ea4e1309c6ae4b9bd1fd8ada251f7a52 /indra/newview/llpaneleditwearable.cpp | |
| parent | 25566075980d45c30ee25603d94454e081119210 (diff) | |
| parent | 3b5d6eed12d928e5a7a0bc3a8d827f676b25d060 (diff) | |
merge
Diffstat (limited to 'indra/newview/llpaneleditwearable.cpp')
| -rw-r--r-- | indra/newview/llpaneleditwearable.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llpaneleditwearable.cpp b/indra/newview/llpaneleditwearable.cpp index 8bd2d5ad6a..cb8fbd66b5 100644 --- a/indra/newview/llpaneleditwearable.cpp +++ b/indra/newview/llpaneleditwearable.cpp @@ -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) { |
