diff options
author | UbitUmarov | 2017-07-16 02:55:39 +0100 |
---|---|---|
committer | UbitUmarov | 2017-07-16 02:55:39 +0100 |
commit | 04b97be71e6e33214491ee9f6fcf94d3978f45f7 (patch) | |
tree | 9828e1516c1bd9a9796121dc17ec2012be921241 | |
parent | don't start moving KFM things on region start that where stopped on last shut... (diff) | |
download | opensim-SC_OLD-04b97be71e6e33214491ee9f6fcf94d3978f45f7.zip opensim-SC_OLD-04b97be71e6e33214491ee9f6fcf94d3978f45f7.tar.gz opensim-SC_OLD-04b97be71e6e33214491ee9f6fcf94d3978f45f7.tar.bz2 opensim-SC_OLD-04b97be71e6e33214491ee9f6fcf94d3978f45f7.tar.xz |
ode does not like null refs
-rw-r--r-- | OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs b/OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs index 44e722c..76ef88b 100644 --- a/OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs +++ b/OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs | |||
@@ -1043,7 +1043,8 @@ namespace OpenSim.Region.PhysicsModule.ubOde | |||
1043 | d.BodySetLinearVel(Body, 0, 0, 0); // stop it | 1043 | d.BodySetLinearVel(Body, 0, 0, 0); // stop it |
1044 | d.BodySetAngularVel(Body, 0, 0, 0); | 1044 | d.BodySetAngularVel(Body, 0, 0, 0); |
1045 | } | 1045 | } |
1046 | d.GeomSetPosition(prim_geom, _position.X, _position.Y, _position.Z); | 1046 | if(prim_geom != IntPtr.Zero) |
1047 | d.GeomSetPosition(prim_geom, _position.X, _position.Y, _position.Z); | ||
1047 | disableBodySoft(); // stop collisions | 1048 | disableBodySoft(); // stop collisions |
1048 | UnSubscribeEvents(); | 1049 | UnSubscribeEvents(); |
1049 | } | 1050 | } |