fall back to using a display mesh for physics proxy if no physics_mesh entry was wound in a mesh asset
parent
71a5cc2041
commit
46eb8465a0
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue