Skip to content
Snippets Groups Projects
Commit 10c2758a authored by dolphin's avatar dolphin
Browse files

fixed LLScriptEdCore::getSelectedExperience

parent 716a963d
No related branches found
No related tags found
No related merge requests found
...@@ -1300,12 +1300,7 @@ void LLScriptEdCore::clearExperiences() ...@@ -1300,12 +1300,7 @@ void LLScriptEdCore::clearExperiences()
LLUUID LLScriptEdCore::getSelectedExperience()const LLUUID LLScriptEdCore::getSelectedExperience()const
{ {
LLSD value = mExperiences->getSelectedValue(); return (LLUUID)mExperiences->getSelectedValue();
if(value.has(LLExperienceCache::EXPERIENCE_ID))
{
return value[LLExperienceCache::EXPERIENCE_ID].asUUID();
}
return LLUUID::null;
} }
void LLScriptEdCore::setAssociatedExperience( const LLUUID& experience_id ) void LLScriptEdCore::setAssociatedExperience( const LLUUID& experience_id )
......
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