changed skeleton, do parse the mesh on upload to check skeleton. Sooner or

later this parsing needs to validate the model cost also.
This commit is contained in:
UbitUmarov
2014-10-11 22:41:59 +01:00
parent cc71dd9a27
commit c3e88b7b38
2 changed files with 26 additions and 26 deletions

View File

@@ -99,15 +99,13 @@ namespace OpenSim.Region.ClientStack.Linden
// avatarSkeleton if mesh includes a avatar skeleton
// useAvatarCollider if we should use physics mesh for avatar
public bool MeshModelCost(LLSDAssetResource resources, int basicCost, out int totalcost,
LLSDAssetUploadResponseData meshcostdata,out bool avatarSkeleton, out bool useAvatarCollider,
out string error, ref string warning)
LLSDAssetUploadResponseData meshcostdata, out string error, ref string warning)
{
totalcost = 0;
error = string.Empty;
avatarSkeleton = false;
useAvatarCollider = false;
bool avatarSkeleton = false;
if (resources == null ||
resources.instance_list == null ||
resources.instance_list.Array.Count == 0)