OSDN Git Service

Fixed that the 3D View plug-in context menus were only showing up for "other avatars...
authorDouglas R. Miles <logicmoo@gmail.com>
Mon, 20 Feb 2012 08:01:00 +0000 (08:01 +0000)
committerDouglas R. Miles <logicmoo@gmail.com>
Mon, 20 Feb 2012 08:01:00 +0000 (08:01 +0000)
git-svn-id: https://radegast.googlecode.com/svn/trunk@1201 f7a694da-4d33-11de-9ad6-1127a62b9fcd

Radegast/GUI/Rendering/Rendering.cs

index d8d24de..ac871ed 100644 (file)
@@ -3338,10 +3338,8 @@ namespace Radegast.Rendering
                         Client.Inventory.RequestDeRezToInventory(prim.Prim.LocalID, DeRezDestination.AgentInventoryTake, Client.Inventory.FindFolderForType(AssetType.TrashFolder), UUID.Random());\r
                     });\r
                     ctxMenu.Items.Add(item);\r
-                    instance.ContextActionManager.AddContributions(ctxMenu, typeof(Primitive), prim.Prim.ID);\r
-\r
-\r
                 }\r
+                instance.ContextActionManager.AddContributions(ctxMenu, typeof(Primitive), prim.Prim.ID);\r
             } // We right clicked on an avatar, add some context menu items\r
             else if (RightclickedObject != null && RightclickedObject is RenderAvatar)\r
             {\r
@@ -3378,9 +3376,8 @@ namespace Radegast.Rendering
                         (new frmPay(Instance, av.avatar.ID, Instance.Names.Get(av.avatar.ID), false)).ShowDialog();\r
                     });\r
                     ctxMenu.Items.Add(item);\r
-                    instance.ContextActionManager.AddContributions(ctxMenu, typeof(Avatar), av.avatar.ID);\r
                 }\r
-\r
+                instance.ContextActionManager.AddContributions(ctxMenu, typeof(Avatar), av.avatar.ID);\r
             }\r
 \r
             // If we are not the sole menu item, add separator\r