diff options
author | David Parks <davep@lindenlab.com> | 2009-11-02 19:55:37 +0000 |
---|---|---|
committer | David Parks <davep@lindenlab.com> | 2009-11-02 19:55:37 +0000 |
commit | 3e80fa3dbc943de9b784fedc202ba38cf238f46d (patch) | |
tree | deeaedd0bf4ed9eb9f99ec47325198efce512e5f /indra/newview/lltexturectrl.cpp | |
parent | 9a196cdda8fa62b90f6f390b21986712d198f03e (diff) |
Sync up with render-pipeline-7 ignore-dead-branch
Diffstat (limited to 'indra/newview/lltexturectrl.cpp')
-rw-r--r-- | indra/newview/lltexturectrl.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/lltexturectrl.cpp b/indra/newview/lltexturectrl.cpp index b5aec1b80b..ae4ec75a1b 100644 --- a/indra/newview/lltexturectrl.cpp +++ b/indra/newview/lltexturectrl.cpp @@ -289,7 +289,7 @@ BOOL LLFloaterTexturePicker::handleDragAndDrop( { BOOL handled = FALSE; - if (cargo_type == DAD_TEXTURE) + if ((cargo_type == DAD_TEXTURE) || (cargo_type == DAD_MESH)) { LLInventoryItem *item = (LLInventoryItem *)cargo_data; @@ -1152,7 +1152,9 @@ BOOL LLTextureCtrl::handleDragAndDrop(S32 x, S32 y, MASK mask, // returns true, then the cast was valid, and we can perform // the third test without problems. LLInventoryItem* item = (LLInventoryItem*)cargo_data; - if (getEnabled() && (cargo_type == DAD_TEXTURE) && allowDrop(item)) + if (getEnabled() && + ((cargo_type == DAD_TEXTURE) || (cargo_type == DAD_MESH)) && + allowDrop(item)) { if (drop) { |