Make sure the material is set on physical prims

avinationmerge
Melanie 2010-12-15 17:54:57 +01:00
parent ee1e725e39
commit 62e66b17bc
2 changed files with 3 additions and 0 deletions

View File

@ -1749,6 +1749,7 @@ namespace OpenSim.Region.Framework.Scenes
part.Scale, part.Scale,
part.RotationOffset, part.RotationOffset,
part.PhysActor.IsPhysical); part.PhysActor.IsPhysical);
part.PhysActor.SetMaterial((int)part.Material);
part.PhysActor.LocalID = part.LocalId; part.PhysActor.LocalID = part.LocalId;
part.DoPhysicsPropertyUpdate(part.PhysActor.IsPhysical, true); part.DoPhysicsPropertyUpdate(part.PhysActor.IsPhysical, true);

View File

@ -1608,6 +1608,7 @@ namespace OpenSim.Region.Framework.Scenes
Scale, Scale,
RotationOffset, RotationOffset,
RigidBody); RigidBody);
PhysActor.SetMaterial(Material);
} }
catch catch
{ {
@ -4432,6 +4433,7 @@ namespace OpenSim.Region.Framework.Scenes
Scale, Scale,
RotationOffset, RotationOffset,
UsePhysics); UsePhysics);
PhysActor.SetMaterial(Material);
pa = PhysActor; pa = PhysActor;
if (pa != null) if (pa != null)