summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelobjectinventory.cpp
diff options
context:
space:
mode:
authorandreykproductengine <akleshchev@productengine.com>2014-11-05 17:52:14 +0200
committerandreykproductengine <akleshchev@productengine.com>2014-11-05 17:52:14 +0200
commit811878df666f5a115d7715639d618877ed4de44a (patch)
tree184a3fe052e7ba98bd0a56d0ae6e4c2d8d1e65dc /indra/newview/llpanelobjectinventory.cpp
parent034cb895bd5646d730e6f956af4ce849a010b184 (diff)
MAINT-202 FIXED Can't open scripts in copied objects individually on the viewer2
Diffstat (limited to 'indra/newview/llpanelobjectinventory.cpp')
-rwxr-xr-xindra/newview/llpanelobjectinventory.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llpanelobjectinventory.cpp b/indra/newview/llpanelobjectinventory.cpp
index 6354b5a02b..1f16505f71 100755
--- a/indra/newview/llpanelobjectinventory.cpp
+++ b/indra/newview/llpanelobjectinventory.cpp
@@ -1107,7 +1107,10 @@ void LLTaskLSLBridge::openItem()
}
if (object->permModify() || gAgent.isGodlike())
{
- LLLiveLSLEditor* preview = LLFloaterReg::showTypedInstance<LLLiveLSLEditor>("preview_scriptedit", LLSD(mUUID), TAKE_FOCUS_YES);
+ LLSD floater_key;
+ floater_key["taskid"] = mPanel->getTaskUUID();
+ floater_key["itemid"] = mUUID;
+ LLLiveLSLEditor* preview = LLFloaterReg::showTypedInstance<LLLiveLSLEditor>("preview_scriptedit", floater_key, TAKE_FOCUS_YES);
if (preview)
{
preview->setObjectID(mPanel->getTaskUUID());