diff options
author | Armin Weatherwax | 2011-04-26 22:16:07 +0200 |
---|---|---|
committer | Armin Weatherwax | 2011-05-17 07:52:26 +0200 |
commit | 5a37b8060e245535b6d4e452125e199e5336cee7 (patch) | |
tree | d3d807dfb5adda61dc1ed980a843679f43f49741 /linden/indra | |
parent | send plugin messages with in notation format instead of xml (diff) | |
download | meta-impy-5a37b8060e245535b6d4e452125e199e5336cee7.zip meta-impy-5a37b8060e245535b6d4e452125e199e5336cee7.tar.gz meta-impy-5a37b8060e245535b6d4e452125e199e5336cee7.tar.bz2 meta-impy-5a37b8060e245535b6d4e452125e199e5336cee7.tar.xz |
fix default unloaded avatar cloud particle texture not loading
Diffstat (limited to 'linden/indra')
-rw-r--r-- | linden/indra/newview/llviewerimagelist.cpp | 7 | ||||
-rw-r--r-- | linden/indra/newview/llvoavatar.cpp | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/linden/indra/newview/llviewerimagelist.cpp b/linden/indra/newview/llviewerimagelist.cpp index 039896f..de92903 100644 --- a/linden/indra/newview/llviewerimagelist.cpp +++ b/linden/indra/newview/llviewerimagelist.cpp | |||
@@ -193,6 +193,13 @@ void LLViewerImageList::doPreloadImages() | |||
193 | mImagePreloads.insert(image); | 193 | mImagePreloads.insert(image); |
194 | } | 194 | } |
195 | 195 | ||
196 | // Preload default unrezzad avatar cloud | ||
197 | image = getImageFromFile("cloud-particle.j2c",MIPMAP_YES,IMMEDIATE_YES,0,0,DEFAULT_UNREZZED_AVATAR_PARTICLE); | ||
198 | if (image) | ||
199 | { | ||
200 | image->setAddressMode(LLTexUnit::TAM_WRAP); | ||
201 | mImagePreloads.insert(image); | ||
202 | } | ||
196 | } | 203 | } |
197 | 204 | ||
198 | static std::string get_texture_list_name() | 205 | static std::string get_texture_list_name() |
diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp index 3ba94fa..ded2230 100644 --- a/linden/indra/newview/llvoavatar.cpp +++ b/linden/indra/newview/llvoavatar.cpp | |||
@@ -1525,7 +1525,7 @@ void LLVOAvatar::loadCloud(const std::string& filename, LLPartSysData& particle | |||
1525 | if(particles.mPartImageID.isNull() || default_id == particles.mPartImageID) | 1525 | if(particles.mPartImageID.isNull() || default_id == particles.mPartImageID) |
1526 | { | 1526 | { |
1527 | LLViewerImage* cloud_image = | 1527 | LLViewerImage* cloud_image = |
1528 | gImageList.getImageFromFile("cloud-particle.j2c", MIPMAP_YES, IMMEDIATE_YES, 0, 0, default_id); | 1528 | gImageList.getImage(default_id); |
1529 | particles.mPartImageID = cloud_image->getID(); | 1529 | particles.mPartImageID = cloud_image->getID(); |
1530 | } | 1530 | } |
1531 | } | 1531 | } |