diff options
author | UbitUmarov | 2015-09-03 22:22:59 +0100 |
---|---|---|
committer | UbitUmarov | 2015-09-03 22:22:59 +0100 |
commit | 1434cb88fd60eb47a73e0b5f91e5e38c296c81a8 (patch) | |
tree | 2de97443b60cb0f62d55fdfa281b8857e5bb0a77 /OpenSim | |
parent | make addavatar more friendly between plugins (diff) | |
download | opensim-SC_OLD-1434cb88fd60eb47a73e0b5f91e5e38c296c81a8.zip opensim-SC_OLD-1434cb88fd60eb47a73e0b5f91e5e38c296c81a8.tar.gz opensim-SC_OLD-1434cb88fd60eb47a73e0b5f91e5e38c296c81a8.tar.bz2 opensim-SC_OLD-1434cb88fd60eb47a73e0b5f91e5e38c296c81a8.tar.xz |
a bit better addAvatar() call chain
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Physics/Manager/PhysicsScene.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/OpenSim/Region/Physics/Manager/PhysicsScene.cs b/OpenSim/Region/Physics/Manager/PhysicsScene.cs index 1bab7e1..a9b30e1 100644 --- a/OpenSim/Region/Physics/Manager/PhysicsScene.cs +++ b/OpenSim/Region/Physics/Manager/PhysicsScene.cs | |||
@@ -180,11 +180,7 @@ namespace OpenSim.Region.Physics.Manager | |||
180 | public virtual PhysicsActor AddAvatar( | 180 | public virtual PhysicsActor AddAvatar( |
181 | uint localID, string avName, Vector3 position, Vector3 size, bool isFlying) | 181 | uint localID, string avName, Vector3 position, Vector3 size, bool isFlying) |
182 | { | 182 | { |
183 | PhysicsActor ret = AddAvatar(avName, position, Vector3.Zero, size, isFlying); | 183 | PhysicsActor ret = AddAvatar(localID, avName, position, Vector3.Zero, size, isFlying); |
184 | |||
185 | if (ret != null) | ||
186 | ret.LocalID = localID; | ||
187 | |||
188 | return ret; | 184 | return ret; |
189 | } | 185 | } |
190 | 186 | ||