For SH-1308 Edit Physics sometimes messes up camera
Removed camera switching for phyics wearables.meow-7.2.2
parent
7054aaba6d
commit
ee3048285f
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue