aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorMelanie2011-10-25 01:53:53 +0100
committerMelanie2011-10-25 01:53:53 +0100
commit8841b77cd1c72f0a43483a8a9c7dadb5e25604a2 (patch)
treeb067bb231a66705ecd1f2c675a602725b0cbc2c6 /OpenSim/Region/Framework/Scenes
parentMerge commit 'f2889d7ce97a01086dc7fc0690865a1eae452364' into bigmerge (diff)
parentRestore [Startup] physical_prim flag which can stop any prims being subject t... (diff)
downloadopensim-SC-8841b77cd1c72f0a43483a8a9c7dadb5e25604a2.zip
opensim-SC-8841b77cd1c72f0a43483a8a9c7dadb5e25604a2.tar.gz
opensim-SC-8841b77cd1c72f0a43483a8a9c7dadb5e25604a2.tar.bz2
opensim-SC-8841b77cd1c72f0a43483a8a9c7dadb5e25604a2.tar.xz
Merge commit '3843efe478ed682fd08bf12ea8bd7377c68a36fb' into bigmerge
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index dbd599e..5abf9dd 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -1603,7 +1603,9 @@ namespace OpenSim.Region.Framework.Scenes
1603 /// <param name="m_physicalPrim"></param> 1603 /// <param name="m_physicalPrim"></param>
1604 public void ApplyPhysics(uint rootObjectFlags, bool VolumeDetectActive, bool m_physicalPrim) 1604 public void ApplyPhysics(uint rootObjectFlags, bool VolumeDetectActive, bool m_physicalPrim)
1605 { 1605 {
1606// m_log.DebugFormat("[SCENE OBJECT PART]: Applying physics to {0} {1} {2}", Name, LocalId, UUID); 1606// m_log.DebugFormat(
1607// "[SCENE OBJECT PART]: Applying physics to {0} {1}, m_physicalPrim {2}",
1608// Name, LocalId, UUID, m_physicalPrim);
1607 1609
1608 bool isPhysical = (((rootObjectFlags & (uint) PrimFlags.Physics) != 0) && m_physicalPrim); 1610 bool isPhysical = (((rootObjectFlags & (uint) PrimFlags.Physics) != 0) && m_physicalPrim);
1609 bool isPhantom = ((rootObjectFlags & (uint) PrimFlags.Phantom) != 0); 1611 bool isPhantom = ((rootObjectFlags & (uint) PrimFlags.Phantom) != 0);
@@ -1871,6 +1873,9 @@ namespace OpenSim.Region.Framework.Scenes
1871 /// <param name="isNew"></param> 1873 /// <param name="isNew"></param>
1872 public void DoPhysicsPropertyUpdate(bool UsePhysics, bool isNew) 1874 public void DoPhysicsPropertyUpdate(bool UsePhysics, bool isNew)
1873 { 1875 {
1876 if (!ParentGroup.Scene.m_physicalPrim && UsePhysics)
1877 return;
1878
1874 if (IsJoint()) 1879 if (IsJoint())
1875 { 1880 {
1876 DoPhysicsPropertyUpdateForNinjaJoint(UsePhysics, isNew); 1881 DoPhysicsPropertyUpdateForNinjaJoint(UsePhysics, isNew);