Prevent multiple requests to go physical from reaching the physics plugin

avinationmerge
Melanie 2012-05-30 16:10:01 +02:00
parent 4358bb8f85
commit 86f786d673
1 changed files with 4 additions and 0 deletions

View File

@ -1312,6 +1312,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (!allow)
return;
if (m_host.ParentGroup.RootPart.PhysActor != null &&
m_host.ParentGroup.RootPart.PhysActor.IsPhysical)
return;
m_host.ScriptSetPhysicsStatus(true);
}
else