diff options
| author | Oz Linden <oz@lindenlab.com> | 2013-09-18 14:37:10 -0700 |
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2013-09-18 14:37:10 -0700 |
| commit | 25e7f5ded1d6cd5f7e136c6023136dfc35b0e118 (patch) | |
| tree | 882948c18019e6c94ae2983fdf86d4a5d8303f98 /indra/newview/lldrawable.cpp | |
| parent | be84aefc40719dacb9ab2c0ace9a2a706d768ffc (diff) | |
| parent | ad777b46d0fe5d790e43efb1771e9f64f3ad3dfb (diff) | |
merge changes for 3.6.6-release
Diffstat (limited to 'indra/newview/lldrawable.cpp')
| -rwxr-xr-x | indra/newview/lldrawable.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/newview/lldrawable.cpp b/indra/newview/lldrawable.cpp index 8c9fd4152a..9682f38227 100755 --- a/indra/newview/lldrawable.cpp +++ b/indra/newview/lldrawable.cpp @@ -132,10 +132,16 @@ void LLDrawable::destroy() sNumZombieDrawables--; } + // Attempt to catch violations of this in debug, + // knowing that some false alarms may result + // + llassert(!LLSpatialGroup::sNoDelete); + + /* cannot be guaranteed and causes crashes on false alarms if (LLSpatialGroup::sNoDelete) { llerrs << "Illegal deletion of LLDrawable!" << llendl; - } + }*/ std::for_each(mFaces.begin(), mFaces.end(), DeletePointer()); mFaces.clear(); @@ -527,6 +533,8 @@ void LLDrawable::makeStatic(BOOL warning_enabled) } updatePartition(); } + + llassert(isAvatar() || isRoot() || mParent->isStatic()); } // Returns "distance" between target destination and resulting xfrom |
