parent
8f6bc554b6
commit
3d7de1b39b
|
|
@ -547,7 +547,7 @@ public:
|
|||
U32 renderTransparent(bool first_pass);
|
||||
void renderCollisionVolumes();
|
||||
void renderBones(const std::string &selected_joint = std::string());
|
||||
void renderJoints();
|
||||
virtual void renderJoints();
|
||||
static void deleteCachedImages(bool clearAll=true);
|
||||
static void destroyGL();
|
||||
static void restoreGL();
|
||||
|
|
|
|||
|
|
@ -697,6 +697,7 @@ void LLVOAvatarSelf::idleUpdate(LLAgent &agent, const F64 &time)
|
|||
// virtual
|
||||
LLJoint *LLVOAvatarSelf::getJoint(const std::string &name)
|
||||
{
|
||||
std::lock_guard lock(mJointMapMutex);
|
||||
LLJoint *jointp = NULL;
|
||||
jointp = LLVOAvatar::getJoint(name);
|
||||
if (!jointp && mScreenp)
|
||||
|
|
@ -714,6 +715,14 @@ LLJoint *LLVOAvatarSelf::getJoint(const std::string &name)
|
|||
return jointp;
|
||||
}
|
||||
|
||||
|
||||
//virtual
|
||||
void LLVOAvatarSelf::renderJoints()
|
||||
{
|
||||
std::lock_guard lock(mJointMapMutex);
|
||||
LLVOAvatar::renderJoints();
|
||||
}
|
||||
|
||||
// virtual
|
||||
bool LLVOAvatarSelf::setVisualParamWeight(const LLVisualParam *which_param, F32 weight)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -92,6 +92,8 @@ public:
|
|||
/*virtual*/ void requestStopMotion(LLMotion* motion);
|
||||
/*virtual*/ LLJoint* getJoint(const std::string &name);
|
||||
|
||||
/*virtual*/ void renderJoints();
|
||||
|
||||
/*virtual*/ bool setVisualParamWeight(const LLVisualParam *which_param, F32 weight);
|
||||
/*virtual*/ bool setVisualParamWeight(const char* param_name, F32 weight);
|
||||
/*virtual*/ bool setVisualParamWeight(S32 index, F32 weight);
|
||||
|
|
@ -103,6 +105,8 @@ private:
|
|||
// helper function. Passed in param is assumed to be in avatar's parameter list.
|
||||
bool setParamWeight(const LLViewerVisualParam *param, F32 weight);
|
||||
|
||||
std::mutex mJointMapMutex; // getJoint gets used from mesh thread
|
||||
|
||||
/********************************************************************************
|
||||
** **
|
||||
** STATE
|
||||
|
|
|
|||
Loading…
Reference in New Issue