Skip to content
Snippets Groups Projects
Commit 3757e9d1 authored by pavelkproductengine's avatar pavelkproductengine
Browse files

MAINT-5488 FIXED [Experience Tools] Opening an experience compiled script in...

MAINT-5488 FIXED [Experience Tools] Opening an experience compiled script in an object in an adjacent region fails to show the script is compiled with an experience in the script editor.
parent 62d9b8cb
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include "llviewerprecompiledheaders.h" #include "llviewerprecompiledheaders.h"
#include "llexperienceassociationresponder.h" #include "llexperienceassociationresponder.h"
#include "llexperiencecache.h" #include "llexperiencecache.h"
#include "llviewerobjectlist.h"
#include "llviewerregion.h" #include "llviewerregion.h"
#include "llagent.h" #include "llagent.h"
...@@ -47,7 +48,13 @@ void ExperienceAssociationResponder::fetchAssociatedExperience( const LLUUID& ob ...@@ -47,7 +48,13 @@ void ExperienceAssociationResponder::fetchAssociatedExperience( const LLUUID& ob
void ExperienceAssociationResponder::fetchAssociatedExperience(LLSD& request, callback_t callback) void ExperienceAssociationResponder::fetchAssociatedExperience(LLSD& request, callback_t callback)
{ {
LLViewerRegion* region = gAgent.getRegion(); LLViewerObject* object = gObjectList.findObject(request["object-id"]);
if (!object)
{
LL_WARNS() << "Failed to find object with ID " << request["object-id"] << " in fetchAssociatedExperience" << LL_ENDL;
return;
}
LLViewerRegion* region = object->getRegion();
if (region) if (region)
{ {
std::string lookup_url=region->getCapability("GetMetadata"); std::string lookup_url=region->getCapability("GetMetadata");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment