Initial moap commit. /VERY/ WIP. Primarily committed to clean up unstaged changes. Do not run this, even if it may compile, as it will NOT work (for a myriad of reasons)!
This commit is contained in:
@@ -122,6 +122,7 @@ public:
|
||||
const LLRect& rect,
|
||||
const std::string& label,
|
||||
PermissionMask immediate_filter_perm_mask,
|
||||
PermissionMask dnd_filter_perm_mask,
|
||||
PermissionMask non_immediate_filter_perm_mask,
|
||||
BOOL can_apply_immediately,
|
||||
const std::string& fallback_image_name);
|
||||
@@ -213,6 +214,7 @@ protected:
|
||||
LLFilterEditor* mFilterEdit;
|
||||
LLInventoryPanel* mInventoryPanel;
|
||||
PermissionMask mImmediateFilterPermMask;
|
||||
PermissionMask mDnDFilterPermMask;
|
||||
PermissionMask mNonImmediateFilterPermMask;
|
||||
BOOL mCanApplyImmediately;
|
||||
BOOL mNoCopyTextureSelected;
|
||||
@@ -227,6 +229,7 @@ LLFloaterTexturePicker::LLFloaterTexturePicker(
|
||||
const LLRect& rect,
|
||||
const std::string& label,
|
||||
PermissionMask immediate_filter_perm_mask,
|
||||
PermissionMask dnd_filter_perm_mask,
|
||||
PermissionMask non_immediate_filter_perm_mask,
|
||||
BOOL can_apply_immediately,
|
||||
const std::string& fallback_image_name)
|
||||
@@ -250,6 +253,7 @@ LLFloaterTexturePicker::LLFloaterTexturePicker(
|
||||
mActive( TRUE ),
|
||||
mFilterEdit(NULL),
|
||||
mImmediateFilterPermMask(immediate_filter_perm_mask),
|
||||
mDnDFilterPermMask(dnd_filter_perm_mask),
|
||||
mNonImmediateFilterPermMask(non_immediate_filter_perm_mask),
|
||||
mContextConeOpacity(0.f),
|
||||
mSelectedItemPinned(FALSE)
|
||||
@@ -366,10 +370,9 @@ BOOL LLFloaterTexturePicker::handleDragAndDrop(
|
||||
if (mod) item_perm_mask |= PERM_MODIFY;
|
||||
if (xfer) item_perm_mask |= PERM_TRANSFER;
|
||||
|
||||
|
||||
PermissionMask filter_perm_mask = mImmediateFilterPermMask;
|
||||
//PermissionMask filter_perm_mask = getFilterPermMask(); Commented out due to no-copy texture loss.
|
||||
PermissionMask filter_perm_mask = mDnDFilterPermMask;
|
||||
if ( (item_perm_mask & filter_perm_mask) == filter_perm_mask )
|
||||
|
||||
{
|
||||
if (drop)
|
||||
{
|
||||
@@ -1339,6 +1342,7 @@ void LLTextureCtrl::showPicker(BOOL take_focus)
|
||||
rect,
|
||||
mLabel,
|
||||
mImmediateFilterPermMask,
|
||||
mDnDFilterPermMask,
|
||||
mNonImmediateFilterPermMask,
|
||||
mCanApplyImmediately,
|
||||
mFallbackImageName);
|
||||
|
||||
Reference in New Issue
Block a user