fall back to using a display mesh for physics proxy if no physics_mesh entry was wound in a mesh asset

user_profiles
dahlia 2013-05-15 17:12:17 -07:00
parent 71a5cc2041
commit 46eb8465a0
1 changed files with 4 additions and 0 deletions

View File

@ -358,6 +358,10 @@ namespace OpenSim.Region.Physics.Meshing
physicsParms = (OSDMap)map["physics_shape"]; // old asset format
else if (map.ContainsKey("physics_mesh"))
physicsParms = (OSDMap)map["physics_mesh"]; // new asset format
else if (map.ContainsKey("medium_lod"))
physicsParms = (OSDMap)map["medium_lod"]; // if no physics mesh, try to fall back to medium LOD display mesh
else if (map.ContainsKey("high_lod"))
physicsParms = (OSDMap)map["high_lod"]; // if all else fails, use highest LOD display mesh and hope it works :)
if (physicsParms == null)
{