Added a few missing BoM pieces.
This commit is contained in:
@@ -1037,14 +1037,26 @@ S32 LLPrimitive::packTEField(U8 *cur_ptr, U8 *data_ptr, U8 data_size, U8 last_fa
|
||||
}
|
||||
|
||||
//assign exception faces to cur_ptr
|
||||
if (exception_faces >= (0x1 << 7))
|
||||
if (exception_faces >= ((U64)0x1 << 7))
|
||||
{
|
||||
if (exception_faces >= (0x1 << 14))
|
||||
if (exception_faces >= ((U64)0x1 << 14))
|
||||
{
|
||||
if (exception_faces >= (0x1 << 21))
|
||||
if (exception_faces >= ((U64)0x1 << 21))
|
||||
{
|
||||
if (exception_faces >= (0x1 << 28))
|
||||
if (exception_faces >= ((U64)0x1 << 28))
|
||||
{
|
||||
if (exception_faces >= ((U64)0x1 << 35))
|
||||
{
|
||||
if (exception_faces >= ((U64)0x1 << 42))
|
||||
{
|
||||
if (exception_faces >= ((U64)0x1 << 49))
|
||||
{
|
||||
*cur_ptr++ = (U8)(((exception_faces >> 49) & 0x7F) | 0x80);
|
||||
}
|
||||
*cur_ptr++ = (U8)(((exception_faces >> 42) & 0x7F) | 0x80);
|
||||
}
|
||||
*cur_ptr++ = (U8)(((exception_faces >> 35) & 0x7F) | 0x80);
|
||||
}
|
||||
*cur_ptr++ = (U8)(((exception_faces >> 28) & 0x7F) | 0x80);
|
||||
}
|
||||
*cur_ptr++ = (U8)(((exception_faces >> 21) & 0x7F) | 0x80);
|
||||
@@ -1053,6 +1065,7 @@ S32 LLPrimitive::packTEField(U8 *cur_ptr, U8 *data_ptr, U8 data_size, U8 last_fa
|
||||
}
|
||||
*cur_ptr++ = (U8)(((exception_faces >> 7) & 0x7F) | 0x80);
|
||||
}
|
||||
|
||||
|
||||
*cur_ptr++ = (U8)(exception_faces & 0x7F);
|
||||
|
||||
@@ -1112,7 +1125,7 @@ S32 LLPrimitive::unpackTEField(U8 *cur_ptr, U8 *buffer_end, U8 *data_ptr, U8 dat
|
||||
// Includes information about image ID, color, scale S,T, offset S,T and rotation
|
||||
BOOL LLPrimitive::packTEMessage(LLMessageSystem *mesgsys) const
|
||||
{
|
||||
const U32 MAX_TES = 32;
|
||||
const U32 MAX_TES = 45;
|
||||
|
||||
U8 image_ids[MAX_TES*16];
|
||||
U8 colors[MAX_TES*4];
|
||||
@@ -1197,7 +1210,7 @@ BOOL LLPrimitive::packTEMessage(LLMessageSystem *mesgsys) const
|
||||
|
||||
BOOL LLPrimitive::packTEMessage(LLDataPacker &dp) const
|
||||
{
|
||||
const U32 MAX_TES = 32;
|
||||
const U32 MAX_TES = 45;
|
||||
|
||||
U8 image_ids[MAX_TES*16];
|
||||
U8 colors[MAX_TES*4];
|
||||
@@ -1401,7 +1414,7 @@ S32 LLPrimitive::unpackTEMessage(LLDataPacker &dp)
|
||||
{
|
||||
// use a negative block_num to indicate a single-block read (a non-variable block)
|
||||
S32 retval = 0;
|
||||
const U32 MAX_TES = 32;
|
||||
const U32 MAX_TES = 45;
|
||||
|
||||
// Avoid construction of 32 UUIDs per call
|
||||
static LLUUID image_ids[MAX_TES];
|
||||
|
||||
@@ -83,6 +83,7 @@ LLPanelGroupGeneral::LLPanelGroupGeneral(const std::string& name,
|
||||
mGroupNameEditor(NULL),
|
||||
mFounderName(NULL),
|
||||
mInsignia(NULL),
|
||||
mGroupName(NULL),
|
||||
mEditCharter(NULL),
|
||||
mBtnJoinGroup(NULL),
|
||||
mListVisibleMembers(NULL),
|
||||
@@ -120,6 +121,7 @@ BOOL LLPanelGroupGeneral::postBuild()
|
||||
|
||||
// General info
|
||||
mGroupNameEditor = getChild<LLLineEditor>("group_name_editor", recurse);
|
||||
mGroupName = getChild<LLNameBox>("group_name", recurse);
|
||||
|
||||
mInsignia = getChild<LLTextureCtrl>("insignia", recurse);
|
||||
if (mInsignia)
|
||||
@@ -261,7 +263,7 @@ BOOL LLPanelGroupGeneral::postBuild()
|
||||
|
||||
mBtnJoinGroup->setVisible(FALSE);
|
||||
mBtnInfo->setVisible(FALSE);
|
||||
getChildView("group_name")->setVisible(FALSE);
|
||||
mGroupName->setVisible(FALSE);
|
||||
}
|
||||
|
||||
std::string member_count(LLTrans::getString("LoadingData"));
|
||||
@@ -730,7 +732,7 @@ void LLPanelGroupGeneral::update(LLGroupChange gc)
|
||||
if (mInsignia) mInsignia->setEnabled(can_change_ident);
|
||||
if (mEditCharter) mEditCharter->setEnabled(can_change_ident);
|
||||
|
||||
getChildView("group_name")->setValue(mGroupID);
|
||||
if (mGroupName) mGroupName->setValue(mGroupID);
|
||||
if (mGroupNameEditor) mGroupNameEditor->setVisible(FALSE);
|
||||
if (mFounderName) mFounderName->setValue(gdatap->mFounderID);
|
||||
|
||||
@@ -905,6 +907,7 @@ void LLPanelGroupGeneral::updateChanged()
|
||||
LLUICtrl *check_list[] =
|
||||
{
|
||||
mGroupNameEditor,
|
||||
mGroupName,
|
||||
mFounderName,
|
||||
mInsignia,
|
||||
mEditCharter,
|
||||
|
||||
@@ -91,6 +91,7 @@ private:
|
||||
|
||||
// Group information (include any updates in updateChanged)
|
||||
LLLineEditor *mGroupNameEditor;
|
||||
LLNameBox *mGroupName;
|
||||
LLNameBox *mFounderName;
|
||||
LLTextureCtrl *mInsignia;
|
||||
LLTextEditor *mEditCharter;
|
||||
|
||||
@@ -2321,7 +2321,13 @@ S32 LLVOVolume::setTEMaterialParams(const U8 te, const LLMaterialPtr pMaterialPa
|
||||
case LLMaterial::DIFFUSE_ALPHA_MODE_EMISSIVE:
|
||||
case LLMaterial::DIFFUSE_ALPHA_MODE_MASK:
|
||||
{ //all of them modes available only for 32 bit textures
|
||||
if(GL_RGBA != img_diffuse->getPrimaryFormat())
|
||||
LLTextureEntry* tex_entry = getTE(te);
|
||||
bool bIsBakedImageId = false;
|
||||
if (tex_entry && LLAvatarAppearanceDefines::LLAvatarAppearanceDictionary::isBakedImageId(tex_entry->getID()))
|
||||
{
|
||||
bIsBakedImageId = true;
|
||||
}
|
||||
if (GL_RGBA != img_diffuse->getPrimaryFormat() && !bIsBakedImageId)
|
||||
{
|
||||
bSetDiffuseNone = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user