change root part physics type none to apply physics

This commit is contained in:
UbitUmarov
2020-03-02 04:05:18 +00:00
parent be16cf9531
commit c30cb8a9cf
2 changed files with 12 additions and 14 deletions

View File

@@ -2068,7 +2068,12 @@ namespace OpenSim.Region.Framework.Scenes
return;
if (PhysicsShapeType == (byte)PhysShapeType.none)
return;
{
if(ParentID == 0)
m_physicsShapeType = DefaultPhysicsShapeType();
else
return;
}
bool isPhysical = (_ObjectFlags & (uint) PrimFlags.Physics) != 0;
bool isPhantom = (_ObjectFlags & (uint)PrimFlags.Phantom) != 0;