summaryrefslogtreecommitdiff
path: root/indra/newview/lltexturectrl.cpp
diff options
context:
space:
mode:
authordavep@billy.gateway.2wire.net <davep@billy.gateway.2wire.net>2010-02-09 11:23:33 -0600
committerdavep@billy.gateway.2wire.net <davep@billy.gateway.2wire.net>2010-02-09 11:23:33 -0600
commit6d4b4762d1eb0a1431e1793a7254f8cac220062a (patch)
tree1076c9227658d6637a424f9266bf3832f371aaaa /indra/newview/lltexturectrl.cpp
parentbc7f2e41fd268895774f9ddffd45be318662dcaa (diff)
parent4d9bcc2c8f303464c3664a0a7304a1bc2d658e2e (diff)
merge
Diffstat (limited to 'indra/newview/lltexturectrl.cpp')
-rw-r--r--indra/newview/lltexturectrl.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/lltexturectrl.cpp b/indra/newview/lltexturectrl.cpp
index 2b846d33fc..60ac701b15 100644
--- a/indra/newview/lltexturectrl.cpp
+++ b/indra/newview/lltexturectrl.cpp
@@ -291,7 +291,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;
@@ -1162,7 +1162,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)
{