diff --git a/indra/newview/llmodelpreview.cpp b/indra/newview/llmodelpreview.cpp index a11e24cfb5..39f0d16ff8 100644 --- a/indra/newview/llmodelpreview.cpp +++ b/indra/newview/llmodelpreview.cpp @@ -467,7 +467,6 @@ void LLModelPreview::rebuildUploadData() { assert_main_thread(); - mDefaultPhysicsShapeP = NULL; mUploadData.clear(); mTextureSet.clear(); diff --git a/indra/newview/llmodelpreview.h b/indra/newview/llmodelpreview.h index 8aa4235e97..272caf644a 100644 --- a/indra/newview/llmodelpreview.h +++ b/indra/newview/llmodelpreview.h @@ -246,7 +246,7 @@ private: /// It is set only when the user chooses a physics shape file that contains a mesh with a name that matches DEFAULT_PHYSICS_MESH_NAME. /// It is reset when such a name is not found, and when resetting the modelpreview. /// Not read unless mWarnOfUnmatchedPhyicsMeshes is true. - LLPointer mDefaultPhysicsShapeP; + LLPointer mDefaultPhysicsShapeP{nullptr}; typedef enum {