Add DisableUndergroundMovement to scrpting API to allow underground movement
if needed. Defaults to true, so those who want to continue using underground scripted prims need to add that option and set it.trunk
parent
f4498983aa
commit
2d949c1f25
|
@ -1857,7 +1857,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
}
|
||||
|
||||
float ground = World.GetGroundHeight((float)targetPos.x, (float)targetPos.y);
|
||||
if (targetPos.z < ground)
|
||||
bool disable_underground_movement = m_ScriptEngine.Config.GetBoolean("DisableUndergroundMovement", true);
|
||||
|
||||
if ((targetPos.z < ground) && disable_underground_movement)
|
||||
targetPos.z = ground;
|
||||
|
||||
if (part.ParentGroup == null)
|
||||
|
|
Loading…
Reference in New Issue