diff options
Diffstat (limited to 'linden/indra/llprimitive/llmaterialtable.cpp')
-rwxr-xr-x[-rw-r--r--] | linden/indra/llprimitive/llmaterialtable.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/linden/indra/llprimitive/llmaterialtable.cpp b/linden/indra/llprimitive/llmaterialtable.cpp index 4c22203..f06bfe8 100644..100755 --- a/linden/indra/llprimitive/llmaterialtable.cpp +++ b/linden/indra/llprimitive/llmaterialtable.cpp | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2001&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2001&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2001-2009, Linden Research, Inc. | 7 | * Copyright (c) 2001-2010, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -92,6 +92,9 @@ F32 const LLMaterialTable::DEFAULT_FRICTION = 0.5f; | |||
92 | F32 const LLMaterialTable::DEFAULT_RESTITUTION = 0.4f; | 92 | F32 const LLMaterialTable::DEFAULT_RESTITUTION = 0.4f; |
93 | 93 | ||
94 | LLMaterialTable::LLMaterialTable() | 94 | LLMaterialTable::LLMaterialTable() |
95 | : mCollisionSoundMatrix(NULL), | ||
96 | mSlidingSoundMatrix(NULL), | ||
97 | mRollingSoundMatrix(NULL) | ||
95 | { | 98 | { |
96 | } | 99 | } |
97 | 100 | ||
@@ -124,6 +127,17 @@ LLMaterialTable::~LLMaterialTable() | |||
124 | mMaterialInfoList.clear(); | 127 | mMaterialInfoList.clear(); |
125 | } | 128 | } |
126 | 129 | ||
130 | void LLMaterialTable::initTableTransNames(std::map<std::string, std::string> namemap) | ||
131 | { | ||
132 | for (info_list_t::iterator iter = mMaterialInfoList.begin(); | ||
133 | iter != mMaterialInfoList.end(); ++iter) | ||
134 | { | ||
135 | LLMaterialInfo *infop = *iter; | ||
136 | std::string name = infop->mName; | ||
137 | infop->mName = namemap[name]; | ||
138 | } | ||
139 | } | ||
140 | |||
127 | void LLMaterialTable::initBasicTable() | 141 | void LLMaterialTable::initBasicTable() |
128 | { | 142 | { |
129 | // *TODO: Translate | 143 | // *TODO: Translate |