dont do recoil on llRezObject called from attachments, as seem to happen

at sl
avinationmerge
UbitUmarov 2014-11-18 10:37:46 +00:00
parent 140c0b3bb8
commit 07074d068b
1 changed files with 14 additions and 9 deletions

View File

@ -3269,6 +3269,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (new_groups == null) if (new_groups == null)
return; return;
bool notAttachment = !m_host.ParentGroup.IsAttachment;
foreach (SceneObjectGroup group in new_groups) foreach (SceneObjectGroup group in new_groups)
{ {
// objects rezzed with this method are die_at_edge by default. // objects rezzed with this method are die_at_edge by default.
@ -3282,6 +3284,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
group.RootPart.UUID.ToString()) }, group.RootPart.UUID.ToString()) },
new DetectParams[0])); new DetectParams[0]));
if (notAttachment)
{
float groupmass = group.GetMass(); float groupmass = group.GetMass();
PhysicsActor pa = group.RootPart.PhysActor; PhysicsActor pa = group.RootPart.PhysActor;
@ -3295,6 +3299,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
llApplyImpulse(recoil, 0); llApplyImpulse(recoil, 0);
} }
} }
}
// Variable script delay? (see (http://wiki.secondlife.com/wiki/LSL_Delay) // Variable script delay? (see (http://wiki.secondlife.com/wiki/LSL_Delay)
} }
return; return;