additional diagnostics, improved shape stability at cost of increasing entanglement between baked and local appearance
parent
7d6da2ebe8
commit
2390e21a9d
|
|
@ -120,10 +120,12 @@ void LLWearableData::wearableUpdated(LLWearable *wearable, BOOL removed)
|
|||
{
|
||||
wearable->setUpdated();
|
||||
// FIXME DRANO avoid updating params via wearables when rendering server-baked appearance.
|
||||
#if 0
|
||||
if (mAvatarAppearance->isUsingServerBakes() && !mAvatarAppearance->isUsingLocalAppearance())
|
||||
{
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
if (!removed)
|
||||
{
|
||||
pullCrossWearableValues(wearable->getType());
|
||||
|
|
|
|||
|
|
@ -320,6 +320,7 @@ void LLViewerWearable::writeToAvatar(LLAvatarAppearance *avatarp)
|
|||
|
||||
if (!viewer_avatar->isValid()) return;
|
||||
|
||||
#if 0
|
||||
// FIXME DRANO - kludgy way to avoid overwriting avatar state from wearables.
|
||||
// Ideally would avoid calling this func in the first place.
|
||||
if (viewer_avatar->isUsingServerBakes() &&
|
||||
|
|
@ -327,6 +328,7 @@ void LLViewerWearable::writeToAvatar(LLAvatarAppearance *avatarp)
|
|||
{
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
ESex old_sex = avatarp->getSex();
|
||||
|
||||
|
|
@ -476,10 +478,13 @@ void LLViewerWearable::setItemID(const LLUUID& item_id)
|
|||
|
||||
void LLViewerWearable::revertValues()
|
||||
{
|
||||
#if 0
|
||||
// DRANO avoid overwrite when not in local appearance
|
||||
if (isAgentAvatarValid() && gAgentAvatarp->isUsingServerBakes() && !gAgentAvatarp->isUsingLocalAppearance())
|
||||
{
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
LLWearable::revertValues();
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -6312,8 +6312,9 @@ void dump_visual_param(apr_file_t* file, LLVisualParam* viewer_param, F32 value)
|
|||
{
|
||||
wtype = vparam->getWearableType();
|
||||
}
|
||||
apr_file_printf(file, "\t\t<param id=\"%d\" name=\"%s\" value=\"%.3f\" type=\"%s\" wearable=\"%s\"/>\n",
|
||||
viewer_param->getID(), viewer_param->getName().c_str(), value, type_string.c_str(),
|
||||
S32 u8_value = F32_to_U8(value,viewer_param->getMinWeight(),viewer_param->getMaxWeight());
|
||||
apr_file_printf(file, "\t\t<param id=\"%d\" name=\"%s\" value=\"%.3f\" u8=\"%d\" type=\"%s\" wearable=\"%s\"/>\n",
|
||||
viewer_param->getID(), viewer_param->getName().c_str(), value, u8_value, type_string.c_str(),
|
||||
LLWearableType::getTypeName(LLWearableType::EType(wtype)).c_str());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -664,12 +664,13 @@ BOOL LLVOAvatarSelf::setParamWeight(const LLViewerVisualParam *param, F32 weight
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
#if 0
|
||||
// FIXME DRANO - kludgy way to avoid overwriting avatar state from wearables.
|
||||
if (isUsingServerBakes() && !isUsingLocalAppearance())
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
if (param->getCrossWearable())
|
||||
{
|
||||
|
|
@ -2654,13 +2655,10 @@ void LLVOAvatarSelf::onCustomizeStart(bool disable_camera_switch)
|
|||
gAgentCamera.changeCameraToCustomizeAvatar();
|
||||
}
|
||||
|
||||
bool enable_verbose_dumps = gSavedSettings.getBOOL("DebugAvatarAppearanceMessage");
|
||||
std::string dump_prefix = gAgentAvatarp->getFullname() + "_" + (gAgentAvatarp->isSelf()?"s":"o") + "_";
|
||||
if (enable_verbose_dumps) { gAgentAvatarp->dumpArchetypeXML(dump_prefix + "on_customize_start"); }
|
||||
#if 0
|
||||
gAgentAvatarp->clearVisualParamWeights();
|
||||
if (enable_verbose_dumps) { gAgentAvatarp->dumpArchetypeXML(dump_prefix + "on_customize_post_clear"); }
|
||||
gAgentAvatarp->idleUpdateAppearanceAnimation();
|
||||
if (enable_verbose_dumps) { gAgentAvatarp->dumpArchetypeXML(dump_prefix + "on_customize_post_update"); }
|
||||
#endif
|
||||
|
||||
gAgentAvatarp->invalidateAll();
|
||||
gAgentAvatarp->updateMeshTextures();
|
||||
|
|
|
|||
Loading…
Reference in New Issue