From 47cc1fcf4650c0da5132c8c077569bf328c364ab Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sat, 31 May 2008 20:47:14 +0000 Subject: Mantis#1428. Thank you kindly, fdg for a patch that solves: When you copy an item in inventory and paste it, the name gets lost. Also when you use "Save as" in the Appearance Editing window the created item in inventory has always the name "New ", regardless of what you typed in as name. --- OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'OpenSim/Region/Environment/Scenes') diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index 18f9148..306998e 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs @@ -513,6 +513,11 @@ namespace OpenSim.Region.Environment.Scenes if (asset != null) { + if (newName != String.Empty) + { + asset.Name = newName; + } + if (remoteClient.AgentId == oldAgentID) { CreateNewInventoryItem( -- cgit v1.1