From 46ccfa1741abbf445b49e79045e649798d1c0b63 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sun, 18 Nov 2007 13:37:02 +0000 Subject: * Found several cases where prim set physical were not subscribing to physics events. --- OpenSim/Region/Environment/Scenes/Scene.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs') diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 0470335..0b9d218 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -647,6 +647,8 @@ namespace OpenSim.Region.Environment.Scenes // if not phantom, add to physics bool UsePhysics = (((rootPart.ObjectFlags & (uint)LLObject.ObjectFlags.Physics) > 0) && m_physicalPrim); if ((rootPart.ObjectFlags & (uint)LLObject.ObjectFlags.Phantom) == 0) + { + rootPart.PhysActor = phyScene.AddPrimShape( rootPart.Name, @@ -654,6 +656,10 @@ namespace OpenSim.Region.Environment.Scenes new PhysicsVector(pos.X, pos.Y, pos.Z), new PhysicsVector(shape.Scale.X, shape.Scale.Y, shape.Scale.Z), new Quaternion(), UsePhysics); + // subscribe to physics events. + rootPart.doPhysicsPropertyUpdate(UsePhysics); + + } } } -- cgit v1.1