mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
Finally make attachments stay put. Randomize local ID generation to
prevent adjacent sims from using identical Local IDs for the attachment Thanks to Mana Janus (Hippo Viewer) for providing the crucial bit of information, namely that, due to a bug in the viewer, adjacent sims can't use the same local ids.
This commit is contained in:
@@ -53,7 +53,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
/// The last allocated local prim id. When a new local id is requested, the next number in the sequence is
|
||||
/// dispensed.
|
||||
/// </summary>
|
||||
private uint m_lastAllocatedLocalId = 720000;
|
||||
protected uint m_lastAllocatedLocalId = 720000;
|
||||
|
||||
private readonly Mutex _primAllocateMutex = new Mutex(false);
|
||||
|
||||
@@ -92,8 +92,6 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
|
||||
protected string m_datastore;
|
||||
|
||||
private uint m_nextAvatarLocalId = 8880000;
|
||||
|
||||
private AssetCache m_assetCache;
|
||||
|
||||
public AssetCache AssetCache
|
||||
@@ -167,11 +165,6 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
get { return m_regInfo; }
|
||||
}
|
||||
|
||||
public uint NextAvatarLocalId
|
||||
{
|
||||
get { return m_nextAvatarLocalId++; }
|
||||
}
|
||||
|
||||
#region admin stuff
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user