Inital full retooling of appearance editor for multi-wearables. Also updated LLTabContainer to use standard commit and validate callback signals.
This commit is contained in:
@@ -81,6 +81,7 @@ LLVisualParamHint::LLVisualParamHint(
|
||||
S32 width, S32 height,
|
||||
LLViewerJointMesh *mesh,
|
||||
LLViewerVisualParam *param,
|
||||
LLWearable *wearable,
|
||||
F32 param_weight)
|
||||
:
|
||||
LLViewerDynamicTexture(width, height, 3, LLViewerDynamicTexture::ORDER_MIDDLE, TRUE ),
|
||||
@@ -88,6 +89,7 @@ LLVisualParamHint::LLVisualParamHint(
|
||||
mIsVisible( FALSE ),
|
||||
mJointMesh( mesh ),
|
||||
mVisualParam( param ),
|
||||
mWearablePtr( wearable ),
|
||||
mVisualParamWeight( param_weight ),
|
||||
mAllowsUpdates( TRUE ),
|
||||
mDelayFrames( 0 ),
|
||||
@@ -153,12 +155,7 @@ BOOL LLVisualParamHint::needsRender()
|
||||
void LLVisualParamHint::preRender(BOOL clear_depth)
|
||||
{
|
||||
mLastParamWeight = mVisualParam->getWeight();
|
||||
LLWearable* wearable = gAgentWearables.getWearable((LLWearableType::EType)mVisualParam->getWearableType(),0); // TODO: MULTI-WEARABLE
|
||||
if(wearable)
|
||||
{
|
||||
llinfos << llformat("%#.8lX",wearable) << llendl;
|
||||
wearable->setVisualParamWeight(mVisualParam->getID(), mVisualParamWeight, FALSE);
|
||||
}
|
||||
if(mWearablePtr)mWearablePtr->setVisualParamWeight(mVisualParam->getID(), mVisualParamWeight, FALSE);
|
||||
gAgentAvatarp->setVisualParamWeight(mVisualParam->getID(), mVisualParamWeight, FALSE);
|
||||
gAgentAvatarp->setVisualParamWeight("Blink_Left", 0.f);
|
||||
gAgentAvatarp->setVisualParamWeight("Blink_Right", 0.f);
|
||||
@@ -259,8 +256,7 @@ BOOL LLVisualParamHint::render()
|
||||
gGL.setAlphaRejectSettings(LLRender::CF_DEFAULT);
|
||||
}
|
||||
gAgentAvatarp->setVisualParamWeight(mVisualParam->getID(), mLastParamWeight);
|
||||
LLWearable* wearable = gAgentWearables.getWearable((LLWearableType::EType)mVisualParam->getWearableType(),0); // TODO: MULTI-WEARABLE
|
||||
if(wearable)wearable->setVisualParamWeight(mVisualParam->getID(), mLastParamWeight, FALSE);
|
||||
if(mWearablePtr)mWearablePtr->setVisualParamWeight(mVisualParam->getID(), mLastParamWeight, FALSE);
|
||||
gAgentAvatarp->updateVisualParams();
|
||||
gGL.color4f(1,1,1,1);
|
||||
mGLTexturep->setGLTextureCreated(true);
|
||||
|
||||
Reference in New Issue
Block a user