aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.cs12
1 files changed, 8 insertions, 4 deletions
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