diff options
author | McCabe Maxsted | 2010-09-23 16:33:58 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-09-23 16:33:58 -0700 |
commit | bd0b9087f27cb79b22c4a161b9e9fd133cf04b76 (patch) | |
tree | 035473d65d6033c790700d0ae1df7116b4bb0434 | |
parent | Merge branch '1.4-fexp-snapshotupdate' into weekly (diff) | |
parent | one more poke on trees+grass + fix the windlight water (diff) | |
download | meta-impy-bd0b9087f27cb79b22c4a161b9e9fd133cf04b76.zip meta-impy-bd0b9087f27cb79b22c4a161b9e9fd133cf04b76.tar.gz meta-impy-bd0b9087f27cb79b22c4a161b9e9fd133cf04b76.tar.bz2 meta-impy-bd0b9087f27cb79b22c4a161b9e9fd133cf04b76.tar.xz |
Merge remote branch 'armin/weekly' into weekly
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 4 | ||||
-rw-r--r-- | linden/indra/newview/llviewerimagelist.cpp | 2 | ||||
-rw-r--r-- | linden/indra/newview/llvograss.cpp | 10 | ||||
-rw-r--r-- | linden/indra/newview/llvograss.h | 2 | ||||
-rw-r--r-- | linden/indra/newview/llvotree.cpp | 2 |
5 files changed, 13 insertions, 7 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index 70659f8..bd4e05c 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -422,7 +422,7 @@ | |||
422 | <key>Type</key> | 422 | <key>Type</key> |
423 | <string>String</string> | 423 | <string>String</string> |
424 | <key>Value</key> | 424 | <key>Value</key> |
425 | <integer>Random</integer> | 425 | <string>Random</string> |
426 | </map> | 426 | </map> |
427 | <key>LastTree</key> | 427 | <key>LastTree</key> |
428 | <map> | 428 | <map> |
@@ -433,7 +433,7 @@ | |||
433 | <key>Type</key> | 433 | <key>Type</key> |
434 | <string>String</string> | 434 | <string>String</string> |
435 | <key>Value</key> | 435 | <key>Value</key> |
436 | <integer>Random</integer> | 436 | <string>Random</string> |
437 | </map> | 437 | </map> |
438 | <key>LastSelectedGrid</key> | 438 | <key>LastSelectedGrid</key> |
439 | <map> | 439 | <map> |
diff --git a/linden/indra/newview/llviewerimagelist.cpp b/linden/indra/newview/llviewerimagelist.cpp index 703d233..cb02b09 100644 --- a/linden/indra/newview/llviewerimagelist.cpp +++ b/linden/indra/newview/llviewerimagelist.cpp | |||
@@ -156,7 +156,7 @@ void LLViewerImageList::doPreloadImages() | |||
156 | image->setAddressMode(LLTexUnit::TAM_WRAP); | 156 | image->setAddressMode(LLTexUnit::TAM_WRAP); |
157 | mImagePreloads.insert(image); | 157 | mImagePreloads.insert(image); |
158 | } | 158 | } |
159 | image = getImage(DEFAULT_WATER_NORMAL, MIPMAP_YES, IMMEDIATE_YES); | 159 | image = getImageFromFile(DEFAULT_WATER_NORMAL.asString()+".j2c", MIPMAP_YES, IMMEDIATE_YES,0,0,DEFAULT_WATER_NORMAL); |
160 | if (image) | 160 | if (image) |
161 | { | 161 | { |
162 | image->setAddressMode(LLTexUnit::TAM_WRAP); | 162 | image->setAddressMode(LLTexUnit::TAM_WRAP); |
diff --git a/linden/indra/newview/llvograss.cpp b/linden/indra/newview/llvograss.cpp index 08f2717..f738872 100644 --- a/linden/indra/newview/llvograss.cpp +++ b/linden/indra/newview/llvograss.cpp | |||
@@ -108,7 +108,9 @@ void LLVOGrass::updateSpecies() | |||
108 | SpeciesMap::const_iterator it = sSpeciesTable.begin(); | 108 | SpeciesMap::const_iterator it = sSpeciesTable.begin(); |
109 | mSpecies = (*it).first; | 109 | mSpecies = (*it).first; |
110 | } | 110 | } |
111 | setTEImage(0, gImageList.getImageFromFile(sSpeciesTable[mSpecies]->mTextureName)); | 111 | |
112 | LLViewerImage* grass_image = gImageList.getImageFromFile(sSpeciesTable[mSpecies]->mTextureName, TRUE, TRUE, 0, 0, sSpeciesTable[mSpecies]->mTextureID); | ||
113 | setTEImage(0, grass_image); | ||
112 | } | 114 | } |
113 | 115 | ||
114 | 116 | ||
@@ -162,13 +164,17 @@ void LLVOGrass::initClass() | |||
162 | 164 | ||
163 | GrassSpeciesData* newGrass = new GrassSpeciesData(); | 165 | GrassSpeciesData* newGrass = new GrassSpeciesData(); |
164 | 166 | ||
165 | |||
166 | std::string textureName; | 167 | std::string textureName; |
167 | 168 | ||
168 | static LLStdStringHandle texture_name_string = LLXmlTree::addAttributeString("texture_name"); | 169 | static LLStdStringHandle texture_name_string = LLXmlTree::addAttributeString("texture_name"); |
169 | success &= grass_def->getFastAttributeString(texture_name_string, textureName); | 170 | success &= grass_def->getFastAttributeString(texture_name_string, textureName); |
170 | newGrass->mTextureName = textureName; | 171 | newGrass->mTextureName = textureName; |
171 | 172 | ||
173 | std::string textureID; | ||
174 | static LLStdStringHandle texture_id = LLXmlTree::addAttributeString("texture_id"); | ||
175 | success &= grass_def->getFastAttributeString(texture_id, textureID); | ||
176 | newGrass->mTextureID = LLUUID(textureID); | ||
177 | |||
172 | static LLStdStringHandle blade_sizex_string = LLXmlTree::addAttributeString("blade_size_x"); | 178 | static LLStdStringHandle blade_sizex_string = LLXmlTree::addAttributeString("blade_size_x"); |
173 | success &= grass_def->getFastAttributeF32(blade_sizex_string, F32_val); | 179 | success &= grass_def->getFastAttributeF32(blade_sizex_string, F32_val); |
174 | newGrass->mBladeSizeX = F32_val; | 180 | newGrass->mBladeSizeX = F32_val; |
diff --git a/linden/indra/newview/llvograss.h b/linden/indra/newview/llvograss.h index 682fbdb..25fa04c 100644 --- a/linden/indra/newview/llvograss.h +++ b/linden/indra/newview/llvograss.h | |||
@@ -128,7 +128,7 @@ private: | |||
128 | void updateSpecies(); | 128 | void updateSpecies(); |
129 | F32 mLastHeight; // For cheap update hack | 129 | F32 mLastHeight; // For cheap update hack |
130 | S32 mNumBlades; | 130 | S32 mNumBlades; |
131 | 131 | // LLPointer<LLViewerImage> mGrassImage; | |
132 | static SpeciesMap sSpeciesTable; | 132 | static SpeciesMap sSpeciesTable; |
133 | }; | 133 | }; |
134 | #endif // LL_VO_GRASS_ | 134 | #endif // LL_VO_GRASS_ |
diff --git a/linden/indra/newview/llvotree.cpp b/linden/indra/newview/llvotree.cpp index 208086f..0a7cc92 100644 --- a/linden/indra/newview/llvotree.cpp +++ b/linden/indra/newview/llvotree.cpp | |||
@@ -324,7 +324,7 @@ U32 LLVOTree::processUpdateMessage(LLMessageSystem *mesgsys, | |||
324 | // | 324 | // |
325 | // Load Species-Specific data | 325 | // Load Species-Specific data |
326 | // | 326 | // |
327 | mTreeImagep = gImageList.getImageFromFile(sSpeciesTable[mSpecies]->mTextureName); | 327 | mTreeImagep = gImageList.getImageFromFile(sSpeciesTable[mSpecies]->mTextureName, TRUE, TRUE, 0, 0, sSpeciesTable[mSpecies]->mTextureID); |
328 | if (mTreeImagep) | 328 | if (mTreeImagep) |
329 | { | 329 | { |
330 | gGL.getTexUnit(0)->bind(mTreeImagep.get()); | 330 | gGL.getTexUnit(0)->bind(mTreeImagep.get()); |