diff options
Diffstat (limited to 'linden/indra/newview/lldrawable.cpp')
-rw-r--r-- | linden/indra/newview/lldrawable.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linden/indra/newview/lldrawable.cpp b/linden/indra/newview/lldrawable.cpp index db57509..a228f68 100644 --- a/linden/indra/newview/lldrawable.cpp +++ b/linden/indra/newview/lldrawable.cpp | |||
@@ -122,6 +122,11 @@ void LLDrawable::destroy() | |||
122 | sNumZombieDrawables--; | 122 | sNumZombieDrawables--; |
123 | } | 123 | } |
124 | 124 | ||
125 | if (LLSpatialGroup::sNoDelete) | ||
126 | { | ||
127 | llerrs << "Illegal deletion of LLDrawable!" << llendl; | ||
128 | } | ||
129 | |||
125 | LLFace::sDeleteLock = mFaces.size() ; | 130 | LLFace::sDeleteLock = mFaces.size() ; |
126 | std::for_each(mFaces.begin(), mFaces.end(), DeletePointer()); | 131 | std::for_each(mFaces.begin(), mFaces.end(), DeletePointer()); |
127 | mFaces.clear(); | 132 | mFaces.clear(); |