Wrecking ball "fix" for attachment kills during teleport
--HG-- branch : RLVameow-7.2.2
parent
779c1ca245
commit
d448031edf
|
|
@ -1175,6 +1175,17 @@
|
|||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>BlockAttachmentKillsOnTeleport</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Ignore all attachment object kills during teleport</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<boolean>1</boolean>
|
||||
</map>
|
||||
<key>BlockAvatarAppearanceMessages</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
|
|||
|
|
@ -3654,13 +3654,14 @@ void process_kill_object(LLMessageSystem *mesgsys, void **user_data)
|
|||
LLViewerObject *objectp = gObjectList.findObject(id);
|
||||
if (objectp)
|
||||
{
|
||||
//// [SL:KB] - Patch: Appearance-TeleportAttachKill | Checked: Catznip-4.0
|
||||
// if ( (objectp->isAttachment()) && (gAgentAvatarp) && (gAgent.getTeleportState() != LLAgent::TELEPORT_NONE) && (objectp->permYouOwner()) )
|
||||
// {
|
||||
// gAgentAvatarp->addPendingDetach(objectp->getRootEdit()->getID());
|
||||
// continue;
|
||||
// }
|
||||
//// [/SL:KB]
|
||||
// [SL:KB] - Patch: Appearance-TeleportAttachKill | Checked: Catznip-4.0
|
||||
if ( (objectp->isAttachment()) && (!objectp->isTempAttachment()) && (LLAgent::TELEPORT_NONE != gAgent.getTeleportState()) &&
|
||||
(gAgentAvatarp) && (objectp->permYouOwner()) && (gSavedSettings.getBOOL("BlockAttachmentKillsOnTeleport")) )
|
||||
{
|
||||
//gAgentAvatarp->addPendingDetach(objectp->getRootEdit()->getID());
|
||||
continue;
|
||||
}
|
||||
// [/SL:KB]
|
||||
|
||||
// Display green bubble on kill
|
||||
if ( gShowObjectUpdates )
|
||||
|
|
|
|||
Loading…
Reference in New Issue