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.RotationOffset,
part.PhysActor.IsPhysical);
part.PhysActor.SetMaterial((int)part.Material);
part.PhysActor.LocalID = part.LocalId;
part.DoPhysicsPropertyUpdate(part.PhysActor.IsPhysical, true);

View File

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