LSL update texture entry is heavy, set all parameters on same update

This commit is contained in:
UbitUmarov
2019-03-19 21:37:58 +00:00
parent af35882eda
commit fe6317f009
3 changed files with 60 additions and 12 deletions

View File

@@ -2338,10 +2338,7 @@ namespace OpenSim.Region.Framework.Scenes
{
ParentGroup.Scene.RemovePhysicalPrim(1);
Velocity = new Vector3(0, 0, 0);
Acceleration = new Vector3(0, 0, 0);
AngularVelocity = new Vector3(0, 0, 0);
APIDActive = false;
Stop();
if (pa.Phantom && !VolumeDetectActive)
{
@@ -4730,14 +4727,13 @@ namespace OpenSim.Region.Framework.Scenes
if ((SetPhantom && !UsePhysics && !SetVD) || ParentGroup.IsAttachment || PhysicsShapeType == (byte)PhysShapeType.none
|| (Shape.PathCurve == (byte)Extrusion.Flexible))
{
Stop();
if (pa != null)
{
if(wasUsingPhysics)
ParentGroup.Scene.RemovePhysicalPrim(1);
RemoveFromPhysics();
}
Stop();
}
else