diff --git a/indra/newview/llpanelobject.cpp b/indra/newview/llpanelobject.cpp index 9ae82f9430894e069205b68357fd9e87774c4438..803d05152c84be6396bf6bac3b77099eb07cda49 100644 --- a/indra/newview/llpanelobject.cpp +++ b/indra/newview/llpanelobject.cpp @@ -2762,7 +2762,7 @@ void LLPanelObject::onRotSelect(bool success, LLViewerObject* obj, const LLTextu void LLPanelObject::onParamsSelect(bool success, LLViewerObject* obj, const LLTextureEntry& te) { - if (success && obj != mObject && (obj && obj->permModify() && !obj->isMesh()) && (mObject && mObject->permModify() && !mObject->isMesh())) + if (success && obj != mObject.get() && (obj && obj->permModify() && !obj->isMesh()) && (mObject && mObject->permModify() && !mObject->isMesh())) { if (obj->getVolume() && LL_PCODE_VOLUME == obj->getPCode()) { @@ -2811,4 +2811,4 @@ void LLPanelObject::onParamsSelect(bool success, LLViewerObject* obj, const LLTe } } mBtnPipettePrimParams->setToggleState(FALSE); -} \ No newline at end of file +}