Merge with siana/future
This commit is contained in:
@@ -83,6 +83,8 @@ F32 LLVOTree::sTreeFactor = 1.f;
|
||||
LLVOTree::SpeciesMap LLVOTree::sSpeciesTable;
|
||||
S32 LLVOTree::sMaxTreeSpecies = 0;
|
||||
|
||||
LLVOTree::SpeciesNames LLVOTree::sSpeciesNames;
|
||||
|
||||
// Tree variables and functions
|
||||
|
||||
LLVOTree::LLVOTree(const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp):
|
||||
@@ -242,6 +244,11 @@ void LLVOTree::initClass()
|
||||
sSpeciesTable[species] = newTree;
|
||||
|
||||
if (species >= sMaxTreeSpecies) sMaxTreeSpecies = species + 1;
|
||||
|
||||
std::string name;
|
||||
static LLStdStringHandle name_string = LLXmlTree::addAttributeString("name");
|
||||
success &= tree_def->getFastAttributeString(name_string, name);
|
||||
sSpeciesNames[name] = species;
|
||||
|
||||
if (!success)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user