aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-06-17 17:23:00 +0000
committerJustin Clarke Casey2008-06-17 17:23:00 +0000
commit33d32355a1712e53f402eab1aa4818712f6f5f2c (patch)
tree67196be9550d26bad6deeff5e485094dc8619e44 /OpenSim/Region/Environment/Scenes
parentUpdate svn properties. (diff)
downloadopensim-SC_OLD-33d32355a1712e53f402eab1aa4818712f6f5f2c.zip
opensim-SC_OLD-33d32355a1712e53f402eab1aa4818712f6f5f2c.tar.gz
opensim-SC_OLD-33d32355a1712e53f402eab1aa4818712f6f5f2c.tar.bz2
opensim-SC_OLD-33d32355a1712e53f402eab1aa4818712f6f5f2c.tar.xz
* refactor: Remove largely duplicate code from SceneXmlLoader.CreatePrimFromXml2()
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs5
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs4
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.cs12
3 files changed, 17 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index e274139..b39e08d 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -79,7 +79,12 @@ namespace OpenSim.Region.Environment.Scenes
79 private int m_timePhase = 24; 79 private int m_timePhase = 24;
80 80
81 private readonly Mutex updateLock; 81 private readonly Mutex updateLock;
82
83 /// <summary>
84 /// Are we applying physics to any of the prims in this scene?
85 /// </summary>
82 public bool m_physicalPrim; 86 public bool m_physicalPrim;
87
83 public bool m_seeIntoRegionFromNeighbor; 88 public bool m_seeIntoRegionFromNeighbor;
84 public int MaxUndoCount = 5; 89 public int MaxUndoCount = 5;
85 private int m_RestartTimerCounter; 90 private int m_RestartTimerCounter;
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index f750200..877f196 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -1052,6 +1052,10 @@ namespace OpenSim.Region.Environment.Scenes
1052 m_rootPart.ScheduleFullUpdate(); 1052 m_rootPart.ScheduleFullUpdate();
1053 } 1053 }
1054 1054
1055 /// <summary>
1056 /// Apply physics to this group
1057 /// </summary>
1058 /// <param name="m_physicalPrim"></param>
1055 public void ApplyPhysics(bool m_physicalPrim) 1059 public void ApplyPhysics(bool m_physicalPrim)
1056 { 1060 {
1057 lock (m_parts) 1061 lock (m_parts)
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
index 42df746..85351f4 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
@@ -494,8 +494,9 @@ namespace OpenSim.Region.Environment.Scenes
494 494
495 return m_velocity; 495 return m_velocity;
496 } 496 }
497 set { 497
498 498 set
499 {
499 m_velocity = value; 500 m_velocity = value;
500 if (PhysActor != null) 501 if (PhysActor != null)
501 { 502 {
@@ -505,7 +506,6 @@ namespace OpenSim.Region.Environment.Scenes
505 m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(PhysActor); 506 m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(PhysActor);
506 } 507 }
507 } 508 }
508
509 } 509 }
510 } 510 }
511 511
@@ -913,9 +913,13 @@ namespace OpenSim.Region.Environment.Scenes
913 return newobject; 913 return newobject;
914 } 914 }
915 915
916 /// <summary>
917 /// Apply physics to this part.
918 /// </summary>
919 /// <param name="rootObjectFlags"></param>
920 /// <param name="m_physicalPrim"></param>
916 public void ApplyPhysics(uint rootObjectFlags, bool m_physicalPrim) 921 public void ApplyPhysics(uint rootObjectFlags, bool m_physicalPrim)
917 { 922 {
918
919 bool isPhysical = (((rootObjectFlags & (uint) LLObject.ObjectFlags.Physics) != 0) && m_physicalPrim); 923 bool isPhysical = (((rootObjectFlags & (uint) LLObject.ObjectFlags.Physics) != 0) && m_physicalPrim);
920 bool isPhantom = ((rootObjectFlags & (uint) LLObject.ObjectFlags.Phantom) != 0); 924 bool isPhantom = ((rootObjectFlags & (uint) LLObject.ObjectFlags.Phantom) != 0);
921 925