Fixes scale property with regards to the physics engine.

0.6.0-stable
Teravus Ovares 2008-06-06 08:03:12 +00:00
parent 9002329a7d
commit e9a444917a
1 changed files with 12 additions and 0 deletions

View File

@ -734,6 +734,18 @@ namespace OpenSim.Region.Environment.Scenes
{ {
StoreUndoState(); StoreUndoState();
m_shape.Scale = value; m_shape.Scale = value;
if (PhysActor != null && m_parentGroup != null)
{
if (m_parentGroup.Scene != null)
{
if (m_parentGroup.Scene.PhysicsScene != null)
{
PhysActor.Size = new PhysicsVector(m_shape.Scale.X, m_shape.Scale.Y, m_shape.Scale.Z);
m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(PhysActor);
}
}
}
TriggerScriptChangedEvent(Changed.SCALE); TriggerScriptChangedEvent(Changed.SCALE);
} }
} }