* Move the ResetChildPrimPhysics() calls to after physics have been applied to the parts rather than after each individual part

* From looking at the code there shouldn't be any difference, and this appears to speed up prim loading and make a certain failure case (where prims seem to be going out of 
bounds on startup) less of a problem.
* However, if I've been bad please revert this patch
0.6.0-stable
Justin Clarke Casey 2008-09-12 00:45:24 +00:00
parent 3f1dbae8e4
commit 90ec9c46d5
1 changed files with 5 additions and 5 deletions

View File

@ -1092,11 +1092,11 @@ namespace OpenSim.Region.Environment.Scenes
if (part.LocalId != m_rootPart.LocalId) if (part.LocalId != m_rootPart.LocalId)
{ {
part.ApplyPhysics(m_rootPart.GetEffectiveObjectFlags(), m_physicalPrim); part.ApplyPhysics(m_rootPart.GetEffectiveObjectFlags(), m_physicalPrim);
} }
}
// Hack to get the physics scene geometries in the right spot
ResetChildPrimPhysicsPositions(); // Hack to get the physics scene geometries in the right spot
} ResetChildPrimPhysicsPositions();
} }
else else
{ {