Merge branch 'DRTVWR-591-maint-X' of https://github.com/secondlife/viewer
# Conflicts: # indra/newview/app_settings/settings.xml # indra/newview/llinventorybridge.cppmeow-7.2.2
commit
54e06c7fc1
|
|
@ -48,8 +48,8 @@ std::string LLFolderViewModelCommon::getStatusText(bool is_empty_folder)
|
|||
|
||||
void LLFolderViewModelCommon::filter()
|
||||
{
|
||||
static LLCachedControl<S32> max_time(*LLUI::getInstance()->mSettingGroups["config"], "FilterItemsMaxTimePerFrameVisible", 10);
|
||||
getFilter().resetTime(llclamp(max_time(), 1, 100));
|
||||
const S32 MAX_FILTER_TIME = 10;
|
||||
getFilter().resetTime(MAX_FILTER_TIME);
|
||||
mFolderView->getViewModelItem()->filter(getFilter());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -770,19 +770,6 @@ void LLDrawable::movePartition()
|
|||
if (part)
|
||||
{
|
||||
part->move(this, getSpatialGroup());
|
||||
|
||||
// SL-18251 "On-screen animesh characters using pelvis offset animations
|
||||
// disappear when root goes off-screen"
|
||||
//
|
||||
// Update extents of the root node when Control Avatar changes it's bounds
|
||||
if (mRenderType == LLPipeline::RENDER_TYPE_CONTROL_AV && isRoot())
|
||||
{
|
||||
LLControlAvatar* controlAvatar = dynamic_cast<LLControlAvatar*>(getVObj().get());
|
||||
if (controlAvatar && controlAvatar->mControlAVBridge)
|
||||
{
|
||||
((LLSpatialGroup*)controlAvatar->mControlAVBridge->mOctree->getListener(0))->setState(LLViewerOctreeGroup::DIRTY);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -79,6 +79,32 @@ LLSidepanelTaskInfo* LLSidepanelTaskInfo::sActivePanel = NULL;
|
|||
|
||||
static LLPanelInjector<LLSidepanelTaskInfo> t_task_info("sidepanel_task_info");
|
||||
|
||||
static std::string click_action_to_string_value(U8 click_action)
|
||||
{
|
||||
switch (click_action)
|
||||
{
|
||||
case CLICK_ACTION_TOUCH:
|
||||
return "Touch";
|
||||
case CLICK_ACTION_SIT:
|
||||
return "Sit";
|
||||
case CLICK_ACTION_BUY:
|
||||
return "Buy";
|
||||
case CLICK_ACTION_PAY:
|
||||
return "Pay";
|
||||
case CLICK_ACTION_OPEN:
|
||||
return "Open";
|
||||
case CLICK_ACTION_ZOOM:
|
||||
return "Zoom";
|
||||
case CLICK_ACTION_DISABLED:
|
||||
return "None";
|
||||
case CLICK_ACTION_IGNORE:
|
||||
return "Ignore";
|
||||
default:
|
||||
return "Touch";
|
||||
}
|
||||
return "Touch";
|
||||
}
|
||||
|
||||
// Default constructor
|
||||
LLSidepanelTaskInfo::LLSidepanelTaskInfo()
|
||||
: mVisibleDebugPermissions(true) // space was allocated by default
|
||||
|
|
@ -924,11 +950,7 @@ void LLSidepanelTaskInfo::refresh()
|
|||
U8 click_action = 0;
|
||||
if (LLSelectMgr::getInstance()->selectionGetClickAction(&click_action))
|
||||
{
|
||||
LLComboBox* ComboClickAction = getChild<LLComboBox>("clickaction");
|
||||
if (ComboClickAction)
|
||||
{
|
||||
ComboClickAction->setCurrentByIndex((S32)click_action);
|
||||
}
|
||||
getChild<LLComboBox>("clickaction")->setValue(click_action_to_string_value(click_action));
|
||||
}
|
||||
getChildView("label click action")->setEnabled(is_perm_modify && is_nonpermanent_enforced && all_volume);
|
||||
getChildView("clickaction")->setEnabled(is_perm_modify && is_nonpermanent_enforced && all_volume);
|
||||
|
|
@ -1185,6 +1207,8 @@ static U8 string_value_to_click_action(std::string p_value)
|
|||
return CLICK_ACTION_ZOOM;
|
||||
if (p_value == "None")
|
||||
return CLICK_ACTION_DISABLED;
|
||||
if (p_value == "Ignore")
|
||||
return CLICK_ACTION_IGNORE;
|
||||
return CLICK_ACTION_TOUCH;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -855,6 +855,43 @@ void LLSpatialGroup::handleChildAddition(const OctreeNode* parent, OctreeNode* c
|
|||
assert_states_valid(this);
|
||||
}
|
||||
|
||||
//virtual
|
||||
void LLSpatialGroup::rebound()
|
||||
{
|
||||
if (!isDirty())
|
||||
return;
|
||||
|
||||
super::rebound();
|
||||
|
||||
if (mSpatialPartition->mDrawableType == LLPipeline::RENDER_TYPE_CONTROL_AV)
|
||||
{
|
||||
llassert(mSpatialPartition->mPartitionType == LLViewerRegion::PARTITION_CONTROL_AV);
|
||||
|
||||
LLSpatialBridge* bridge = getSpatialPartition()->asBridge();
|
||||
if (bridge &&
|
||||
bridge->mDrawable &&
|
||||
bridge->mDrawable->getVObj() &&
|
||||
bridge->mDrawable->getVObj()->isRoot())
|
||||
{
|
||||
LLControlAvatar* controlAvatar = bridge->mDrawable->getVObj()->getControlAvatar();
|
||||
if (controlAvatar &&
|
||||
controlAvatar->mDrawable &&
|
||||
controlAvatar->mControlAVBridge)
|
||||
{
|
||||
llassert(controlAvatar->mControlAVBridge->mOctree);
|
||||
|
||||
LLSpatialGroup* root = (LLSpatialGroup*)controlAvatar->mControlAVBridge->mOctree->getListener(0);
|
||||
if (this == root)
|
||||
{
|
||||
const LLVector4a* addingExtents = controlAvatar->mDrawable->getSpatialExtents();
|
||||
const LLXformMatrix* currentTransform = bridge->mDrawable->getXform();
|
||||
expandExtents(addingExtents, *currentTransform);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void LLSpatialGroup::destroyGL(bool keep_occlusion)
|
||||
{
|
||||
// <FS:Ansariel> Reset VB during TP
|
||||
|
|
@ -1639,6 +1676,7 @@ void pushVertsColorCoded(LLSpatialGroup* group, U32 mask)
|
|||
// - a linked rigged drawable face has the wrong draw order index
|
||||
bool check_rigged_group(LLDrawable* drawable)
|
||||
{
|
||||
#if 0
|
||||
if (drawable->isState(LLDrawable::RIGGED))
|
||||
{
|
||||
LLSpatialGroup* group = drawable->getSpatialGroup();
|
||||
|
|
@ -1694,7 +1732,7 @@ bool check_rigged_group(LLDrawable* drawable)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -216,6 +216,7 @@ public:
|
|||
LL_ALIGN_PREFIX(64)
|
||||
class LLSpatialGroup : public LLOcclusionCullingGroup
|
||||
{
|
||||
using super = LLOcclusionCullingGroup;
|
||||
friend class LLSpatialPartition;
|
||||
friend class LLOctreeStateCheck;
|
||||
public:
|
||||
|
|
@ -333,6 +334,9 @@ public:
|
|||
virtual void handleDestruction(const TreeNode* node);
|
||||
virtual void handleChildAddition(const OctreeNode* parent, OctreeNode* child);
|
||||
|
||||
// LLViewerOctreeGroup
|
||||
virtual void rebound();
|
||||
|
||||
public:
|
||||
LL_ALIGN_16(LLVector4a mViewAngle);
|
||||
LL_ALIGN_16(LLVector4a mLastUpdateViewAngle);
|
||||
|
|
|
|||
|
|
@ -295,14 +295,14 @@
|
|||
label="Zoom"
|
||||
name="Zoom"
|
||||
value="Zoom" />
|
||||
<combo_box.item
|
||||
label="Ignore object"
|
||||
name="Ignoreobject"
|
||||
value="Ignore" />
|
||||
<combo_box.item
|
||||
label="None"
|
||||
name="None"
|
||||
value="None" />
|
||||
<combo_box.item
|
||||
label="Ignore object"
|
||||
name="Ignoreobject"
|
||||
value="Ignore" />
|
||||
</combo_box>
|
||||
<panel
|
||||
border="false"
|
||||
|
|
|
|||
Loading…
Reference in New Issue