dont do recoil on llRezObject called from attachments, as seem to happen
at slavinationmerge
parent
140c0b3bb8
commit
07074d068b
|
@ -3269,6 +3269,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
if (new_groups == null)
|
||||
return;
|
||||
|
||||
bool notAttachment = !m_host.ParentGroup.IsAttachment;
|
||||
|
||||
foreach (SceneObjectGroup group in new_groups)
|
||||
{
|
||||
// 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()) },
|
||||
new DetectParams[0]));
|
||||
|
||||
if (notAttachment)
|
||||
{
|
||||
float groupmass = group.GetMass();
|
||||
|
||||
PhysicsActor pa = group.RootPart.PhysActor;
|
||||
|
@ -3295,6 +3299,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
llApplyImpulse(recoil, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
// Variable script delay? (see (http://wiki.secondlife.com/wiki/LSL_Delay)
|
||||
}
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue