mirror of
https://github.com/opensim/opensim.git
synced 2026-07-14 03:15:36 +08:00
Fix problem where changes to media textures for prims duplicated by shify copy would change both prims until server restart
I also found out that you can crash the current viewer by giving it more media entrys than it's expecting
This commit is contained in:
@@ -1617,7 +1617,24 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
dupe.DoPhysicsPropertyUpdate(UsePhysics, true);
|
||||
}
|
||||
|
||||
return dupe;
|
||||
if (Shape.Media != null)
|
||||
{
|
||||
List<MediaEntry> dupeMedia = new List<MediaEntry>();
|
||||
|
||||
foreach (MediaEntry me in Shape.Media)
|
||||
{
|
||||
if (me != null)
|
||||
dupeMedia.Add(MediaEntry.FromOSD(me.GetOSD()));
|
||||
else
|
||||
dupeMedia.Add(null);
|
||||
}
|
||||
|
||||
dupe.Shape.Media = dupeMedia;
|
||||
}
|
||||
|
||||
// m_log.DebugFormat("[SCENE OBJECT PART]: Clone of {0} {1} finished", Name, UUID);
|
||||
|
||||
return dupe;
|
||||
}
|
||||
|
||||
protected void AssetReceived(string id, Object sender, AssetBase asset)
|
||||
|
||||
Reference in New Issue
Block a user