fix the default shape type on upload, it is always convex

LSLKeyTest
UbitUmarov 2015-11-29 00:19:25 +00:00
parent 15f8a46216
commit ca026ac735
1 changed files with 1 additions and 3 deletions

View File

@ -1028,9 +1028,7 @@ namespace OpenSim.Region.ClientStack.Linden
// for now viwers do send fixed defaults
// but this may change
// int physicsShapeType = inner_instance_list["physics_shape_type"].AsInteger();
byte physicsShapeType = (byte)PhysShapeType.prim; // default for mesh is simple convex
if(hasmesh)
physicsShapeType = (byte) PhysShapeType.convex; // default for mesh is simple convex
byte physicsShapeType = (byte)PhysShapeType.convex; // default is simple convex
// int material = inner_instance_list["material"].AsInteger();
byte material = (byte)Material.Wood;