diff options
author | Mike Mazur | 2009-03-05 08:30:23 +0000 |
---|---|---|
committer | Mike Mazur | 2009-03-05 08:30:23 +0000 |
commit | 1894d69c8a582bec7a5bf96d025f12aa99287816 (patch) | |
tree | 5a5ec9037c19169ca92209f6a99faf676defda0e /OpenSim/Grid/AssetInventoryServer/Plugins/OpenSim/OpenSimInventoryService.cs | |
parent | Fix creating inventory items and folders. (diff) | |
download | opensim-SC_OLD-1894d69c8a582bec7a5bf96d025f12aa99287816.zip opensim-SC_OLD-1894d69c8a582bec7a5bf96d025f12aa99287816.tar.gz opensim-SC_OLD-1894d69c8a582bec7a5bf96d025f12aa99287816.tar.bz2 opensim-SC_OLD-1894d69c8a582bec7a5bf96d025f12aa99287816.tar.xz |
Fix moving folders.
Casting from base class to inherited class is a no-no, and we must
preserve the folder type when moving folders, otherwise it gets set to a
Texture folder (type 0).
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Grid/AssetInventoryServer/Plugins/OpenSim/OpenSimInventoryService.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Grid/AssetInventoryServer/Plugins/OpenSim/OpenSimInventoryService.cs b/OpenSim/Grid/AssetInventoryServer/Plugins/OpenSim/OpenSimInventoryService.cs index ca995b3..3ddd07d 100644 --- a/OpenSim/Grid/AssetInventoryServer/Plugins/OpenSim/OpenSimInventoryService.cs +++ b/OpenSim/Grid/AssetInventoryServer/Plugins/OpenSim/OpenSimInventoryService.cs | |||
@@ -48,7 +48,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.OpenSim | |||
48 | 48 | ||
49 | if (null != baseFolder) | 49 | if (null != baseFolder) |
50 | { | 50 | { |
51 | folder = (InventoryFolderWithChildren) baseFolder; | 51 | folder = new InventoryFolderWithChildren(baseFolder); |
52 | folder.Children = null; // This call only returns data for the folder itself, no children data | 52 | folder.Children = null; // This call only returns data for the folder itself, no children data |
53 | } | 53 | } |
54 | 54 | ||