aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvotree.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-06-10 10:53:54 -0700
committerMcCabe Maxsted2009-06-10 10:53:54 -0700
commit074acc412548c29729f1782f2803e426507d7115 (patch)
treead797d7113df1a77d3604248dab044a8abcad037 /linden/indra/newview/llvotree.cpp
parentFixed Communicate window not toggling from menu (diff)
downloadmeta-impy-074acc412548c29729f1782f2803e426507d7115.zip
meta-impy-074acc412548c29729f1782f2803e426507d7115.tar.gz
meta-impy-074acc412548c29729f1782f2803e426507d7115.tar.bz2
meta-impy-074acc412548c29729f1782f2803e426507d7115.tar.xz
Applied MJM's tree and grass pulldown list from the Hippo Viewer
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llvotree.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/linden/indra/newview/llvotree.cpp b/linden/indra/newview/llvotree.cpp
index 23c92ea..e1c3542 100644
--- a/linden/indra/newview/llvotree.cpp
+++ b/linden/indra/newview/llvotree.cpp
@@ -77,6 +77,9 @@ F32 LLVOTree::sTreeFactor = 1.f;
77LLVOTree::SpeciesMap LLVOTree::sSpeciesTable; 77LLVOTree::SpeciesMap LLVOTree::sSpeciesTable;
78S32 LLVOTree::sMaxTreeSpecies = 0; 78S32 LLVOTree::sMaxTreeSpecies = 0;
79 79
80LLVOTree::SpeciesNames LLVOTree::sSpeciesNames;
81
82
80// Tree variables and functions 83// Tree variables and functions
81 84
82LLVOTree::LLVOTree(const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp): 85LLVOTree::LLVOTree(const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp):
@@ -230,11 +233,16 @@ void LLVOTree::initClass()
230 233
231 if (species >= sMaxTreeSpecies) sMaxTreeSpecies = species + 1; 234 if (species >= sMaxTreeSpecies) sMaxTreeSpecies = species + 1;
232 235
236 std::string name;
237 static LLStdStringHandle name_string = LLXmlTree::addAttributeString("name");
238 success &= tree_def->getFastAttributeString(name_string, name);
239 sSpeciesNames[name] = species;
240
233 if (!success) 241 if (!success)
234 { 242 {
235 std::string name; 243 //std::string name;
236 static LLStdStringHandle name_string = LLXmlTree::addAttributeString("name"); 244 //static LLStdStringHandle name_string = LLXmlTree::addAttributeString("name");
237 tree_def->getFastAttributeString(name_string, name); 245 //tree_def->getFastAttributeString(name_string, name);
238 llwarns << "Incomplete definition of tree " << name << llendl; 246 llwarns << "Incomplete definition of tree " << name << llendl;
239 } 247 }
240 } 248 }