Use consistent GroupPosition value Make SOP.UpdateGroupPosition() rather than one that could change whilst the method is being executed.
							parent
							
								
									2a76b08ebd
								
							
						
					
					
						commit
						9d6ff81a07
					
				|  | @ -3795,13 +3795,14 @@ namespace OpenSim.Region.Framework.Scenes | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         public void UpdateGroupPosition(Vector3 pos) |         public void UpdateGroupPosition(Vector3 newPos) | ||||||
|         { |         { | ||||||
|             if ((pos.X != GroupPosition.X) || |             Vector3 oldPos = GroupPosition; | ||||||
|                 (pos.Y != GroupPosition.Y) || | 
 | ||||||
|                 (pos.Z != GroupPosition.Z)) |             if ((newPos.X != oldPos.X) || | ||||||
|  |                 (newPos.Y != oldPos.Y) || | ||||||
|  |                 (newPos.Z != oldPos.Z)) | ||||||
|             { |             { | ||||||
|                 Vector3 newPos = new Vector3(pos.X, pos.Y, pos.Z); |  | ||||||
|                 GroupPosition = newPos; |                 GroupPosition = newPos; | ||||||
|                 ScheduleTerseUpdate(); |                 ScheduleTerseUpdate(); | ||||||
|             } |             } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Justin Clark-Casey (justincc)
						Justin Clark-Casey (justincc)