fix protocol version to max wearables mapping

LSLKeyTest
UbitUmarov 2015-12-01 19:49:27 +00:00
parent f42522b510
commit b1c4f69154
1 changed files with 3 additions and 1 deletions

View File

@ -396,8 +396,10 @@ namespace OpenSim.Services.Connectors.Simulation
// Version stuff // Version stuff
if (ctx.OutboundVersion < 0.5) if (ctx.OutboundVersion < 0.5)
ctx.WearablesCount = AvatarWearable.LEGACY_VERSION_MAX_WEARABLES; ctx.WearablesCount = AvatarWearable.LEGACY_VERSION_MAX_WEARABLES;
if (ctx.OutboundVersion < 0.6) else if (ctx.OutboundVersion < 0.6)
ctx.WearablesCount = AvatarWearable.LEGACY_VERSION_MAX_WEARABLES + 1; ctx.WearablesCount = AvatarWearable.LEGACY_VERSION_MAX_WEARABLES + 1;
else
ctx.WearablesCount = -1; // send all (just in case..)
return success; return success;
} }