diff options
author | UbitUmarov | 2014-09-25 16:37:43 +0100 |
---|---|---|
committer | UbitUmarov | 2014-09-25 16:37:43 +0100 |
commit | 57166878b54ca1495e244a2a1ef791129b42d70f (patch) | |
tree | 2d0f7a56866eedee6503ea5de5d46a05163bd650 | |
parent | add also the name animset until its clear the name liru will use (diff) | |
download | opensim-SC-57166878b54ca1495e244a2a1ef791129b42d70f.zip opensim-SC-57166878b54ca1495e244a2a1ef791129b42d70f.tar.gz opensim-SC-57166878b54ca1495e244a2a1ef791129b42d70f.tar.bz2 opensim-SC-57166878b54ca1495e244a2a1ef791129b42d70f.tar.xz |
fix animation asset name to "animatn", use "animset" for the new
animationSet
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs index 01d4248..9b12dd2 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs | |||
@@ -530,6 +530,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
530 | 530 | ||
531 | if (llsdRequest.asset_type == "texture" || | 531 | if (llsdRequest.asset_type == "texture" || |
532 | llsdRequest.asset_type == "animation" || | 532 | llsdRequest.asset_type == "animation" || |
533 | llsdRequest.asset_type == "animatn" || // this is the asset name actually used by viewers | ||
533 | llsdRequest.asset_type == "mesh" || | 534 | llsdRequest.asset_type == "mesh" || |
534 | llsdRequest.asset_type == "sound") | 535 | llsdRequest.asset_type == "sound") |
535 | { | 536 | { |
@@ -757,13 +758,6 @@ namespace OpenSim.Region.ClientStack.Linden | |||
757 | inType = (sbyte)InventoryType.Animation; | 758 | inType = (sbyte)InventoryType.Animation; |
758 | assType = (sbyte)AssetType.Animation; | 759 | assType = (sbyte)AssetType.Animation; |
759 | } | 760 | } |
760 | // add add both animationset and animset until is clear what name Liru will use | ||
761 | else if (inventoryType == "animationset") | ||
762 | { | ||
763 | inType = (sbyte)CustomInventoryType.AnimationSet; | ||
764 | assType = (sbyte)CustomAssetType.AnimationSet; | ||
765 | m_log.Debug("got animationset upload request"); | ||
766 | } | ||
767 | else if (inventoryType == "animset") | 761 | else if (inventoryType == "animset") |
768 | { | 762 | { |
769 | inType = (sbyte)CustomInventoryType.AnimationSet; | 763 | inType = (sbyte)CustomInventoryType.AnimationSet; |
@@ -1121,7 +1115,15 @@ namespace OpenSim.Region.ClientStack.Linden | |||
1121 | // If we set PermissionMask.All then when we rez the item the next permissions will replace the current | 1115 | // If we set PermissionMask.All then when we rez the item the next permissions will replace the current |
1122 | // (owner) permissions. This becomes a problem if next permissions are changed. | 1116 | // (owner) permissions. This becomes a problem if next permissions are changed. |
1123 | 1117 | ||
1124 | if (restrictPerms) | 1118 | if (inType == (sbyte)CustomInventoryType.AnimationSet) |
1119 | { | ||
1120 | item.BasePermissions = (uint)(PermissionMask.Copy | PermissionMask.Modify); | ||
1121 | item.CurrentPermissions = (uint)(PermissionMask.Copy| PermissionMask.Modify); | ||
1122 | item.EveryOnePermissions = 0; | ||
1123 | item.NextPermissions = 0; | ||
1124 | } | ||
1125 | |||
1126 | else if (restrictPerms) | ||
1125 | { | 1127 | { |
1126 | item.BasePermissions = (uint)(PermissionMask.Move | PermissionMask.Modify); | 1128 | item.BasePermissions = (uint)(PermissionMask.Move | PermissionMask.Modify); |
1127 | item.CurrentPermissions = (uint)(PermissionMask.Move | PermissionMask.Modify); | 1129 | item.CurrentPermissions = (uint)(PermissionMask.Move | PermissionMask.Modify); |