diff options
author | Teravus Ovares | 2008-03-16 18:55:56 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-03-16 18:55:56 +0000 |
commit | 76bf1f365455ec19b277404184a0ab24e1281dde (patch) | |
tree | d38c047500e2437fd2521d472d1c54781cf785ab /OpenSim/Region/Environment | |
parent | Update svn:ignore (diff) | |
download | opensim-SC_OLD-76bf1f365455ec19b277404184a0ab24e1281dde.zip opensim-SC_OLD-76bf1f365455ec19b277404184a0ab24e1281dde.tar.gz opensim-SC_OLD-76bf1f365455ec19b277404184a0ab24e1281dde.tar.bz2 opensim-SC_OLD-76bf1f365455ec19b277404184a0ab24e1281dde.tar.xz |
* Fixed prim creation in basic physics mode. ( BasicPhysics returns null probably a lot more then it should? )
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 4614709..e9d4c66 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -785,9 +785,13 @@ namespace OpenSim.Region.Environment.Scenes | |||
785 | new PhysicsVector(Scale.X, Scale.Y, Scale.Z), | 785 | new PhysicsVector(Scale.X, Scale.Y, Scale.Z), |
786 | new Quaternion(RotationOffset.W, RotationOffset.X, | 786 | new Quaternion(RotationOffset.W, RotationOffset.X, |
787 | RotationOffset.Y, RotationOffset.Z), RigidBody); | 787 | RotationOffset.Y, RotationOffset.Z), RigidBody); |
788 | PhysActor.LocalID = LocalId; | 788 | |
789 | 789 | // Basic Physics returns null.. joy joy joy. | |
790 | DoPhysicsPropertyUpdate(RigidBody, true); | 790 | if (PhysActor != null) |
791 | { | ||
792 | PhysActor.LocalID = LocalId; | ||
793 | DoPhysicsPropertyUpdate(RigidBody, true); | ||
794 | } | ||
791 | } | 795 | } |
792 | } | 796 | } |
793 | 797 | ||