diff options
Diffstat (limited to 'linden/indra/llcharacter/llkeyframemotionparam.h')
-rw-r--r-- | linden/indra/llcharacter/llkeyframemotionparam.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/linden/indra/llcharacter/llkeyframemotionparam.h b/linden/indra/llcharacter/llkeyframemotionparam.h index f509e6a..0d17141 100644 --- a/linden/indra/llcharacter/llkeyframemotionparam.h +++ b/linden/indra/llcharacter/llkeyframemotionparam.h | |||
@@ -126,7 +126,12 @@ protected: | |||
126 | //------------------------------------------------------------------------- | 126 | //------------------------------------------------------------------------- |
127 | // new functions defined by this subclass | 127 | // new functions defined by this subclass |
128 | //------------------------------------------------------------------------- | 128 | //------------------------------------------------------------------------- |
129 | typedef std::pair<LLMotion*, F32> ParameterizedMotion; | 129 | struct ParameterizedMotion |
130 | { | ||
131 | ParameterizedMotion(LLMotion* motion, F32 param) : mMotion(motion), mParam(param) {} | ||
132 | LLMotion* mMotion; | ||
133 | F32 mParam; | ||
134 | }; | ||
130 | 135 | ||
131 | // add a motion and associated parameter triplet | 136 | // add a motion and associated parameter triplet |
132 | BOOL addKeyframeMotion(char *name, const LLUUID &id, char *param, F32 value); | 137 | BOOL addKeyframeMotion(char *name, const LLUUID &id, char *param, F32 value); |
@@ -134,8 +139,6 @@ protected: | |||
134 | // set default motion for LOD and retrieving blend constants | 139 | // set default motion for LOD and retrieving blend constants |
135 | void setDefaultKeyframeMotion(char *); | 140 | void setDefaultKeyframeMotion(char *); |
136 | 141 | ||
137 | static BOOL sortFunc(ParameterizedMotion *new_motion, ParameterizedMotion *tested_motion); | ||
138 | |||
139 | BOOL loadMotions(); | 142 | BOOL loadMotions(); |
140 | 143 | ||
141 | protected: | 144 | protected: |
@@ -147,10 +150,10 @@ protected: | |||
147 | { | 150 | { |
148 | bool operator() (const ParameterizedMotion& a, const ParameterizedMotion& b) const | 151 | bool operator() (const ParameterizedMotion& a, const ParameterizedMotion& b) const |
149 | { | 152 | { |
150 | if (a.second != b.second) | 153 | if (a.mParam != b.mParam) |
151 | return (a.second < b.second); | 154 | return (a.mParam < b.mParam); |
152 | else | 155 | else |
153 | return a.first < b.first; | 156 | return a.mMotion < b.mMotion; |
154 | } | 157 | } |
155 | }; | 158 | }; |
156 | 159 | ||