* Some more ApplyPhysics voodoo
parent
a553e6f67c
commit
c1fdba8a6f
|
@ -247,6 +247,8 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
|
||||
AttachToBackup();
|
||||
|
||||
ApplyPhysics();
|
||||
|
||||
ScheduleGroupForFullUpdate();
|
||||
}
|
||||
|
||||
|
@ -281,7 +283,6 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
part.RegionHandle = m_regionHandle;
|
||||
|
||||
part.ApplyPermissions();
|
||||
part.ApplyPhysics();
|
||||
}
|
||||
break;
|
||||
case XmlNodeType.EndElement:
|
||||
|
@ -300,6 +301,8 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
|
||||
AttachToBackup();
|
||||
|
||||
ApplyPhysics();
|
||||
|
||||
ScheduleGroupForFullUpdate();
|
||||
}
|
||||
|
||||
|
@ -384,9 +387,11 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
|
||||
|
||||
|
||||
if (inter.HitTF) {
|
||||
if (inter.HitTF)
|
||||
{
|
||||
// We need to find the closest prim to return to the testcaller along the ray
|
||||
if (inter.distance < idist) {
|
||||
if (inter.distance < idist)
|
||||
{
|
||||
|
||||
idist = inter.distance;
|
||||
returnresult.HitTF = true;
|
||||
|
@ -429,6 +434,8 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
SetPartAsRoot(newPart);
|
||||
|
||||
AttachToBackup();
|
||||
|
||||
ApplyPhysics();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -579,7 +586,8 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
m_parts.Add(newPart.UUID, newPart);
|
||||
SetPartAsRoot(newPart);
|
||||
}
|
||||
public void SetRootPartOwner(SceneObjectPart part, LLUUID cAgentID, LLUUID cGroupID) {
|
||||
public void SetRootPartOwner(SceneObjectPart part, LLUUID cAgentID, LLUUID cGroupID)
|
||||
{
|
||||
part.LastOwnerID = part.OwnerID;
|
||||
part.OwnerID = cAgentID;
|
||||
part.GroupID = cGroupID;
|
||||
|
@ -1679,10 +1687,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
|
||||
public void ApplyPhysics()
|
||||
{
|
||||
foreach(SceneObjectPart part in m_parts.Values )
|
||||
{
|
||||
part.ApplyPhysics();
|
||||
}
|
||||
m_rootPart.ApplyPhysics();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -473,7 +473,6 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
LLObject.ObjectFlags.ObjectOwnerModify;
|
||||
|
||||
ApplyPermissions();
|
||||
ApplyPhysics();
|
||||
|
||||
ScheduleFullUpdate();
|
||||
}
|
||||
|
@ -512,7 +511,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
ObjectFlags = flags;
|
||||
|
||||
ApplyPermissions();
|
||||
ApplyPhysics();
|
||||
// ApplyPhysics();
|
||||
|
||||
ScheduleFullUpdate();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue