Guard against possible crash in particle editor menu enabling check.

ziree 2012-05-09 13:17:11 +02:00
parent c0c2640417
commit 1fea4fffe6
1 changed files with 3 additions and 0 deletions

View File

@ -2577,6 +2577,9 @@ class LLEnableEditParticleSource : public view_listener_t
LLObjectSelection::valid_iterator iter=LLSelectMgr::instance().getSelection()->valid_begin();
LLSelectNode* node=*iter;
if(!node || !node->mPermissions)
return false;
if(node->mPermissions->getOwner()==gAgent.getID())
return true;
}