mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
* Doh! scripts that get controls should get controls even when you're sitting on an object.
This commit is contained in:
@@ -797,7 +797,15 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
{
|
||||
StandUp();
|
||||
}
|
||||
lock (scriptedcontrols)
|
||||
{
|
||||
if (scriptedcontrols.Count > 0)
|
||||
{
|
||||
SendControlToScripts(flags, LastCommands);
|
||||
flags = this.RemoveIgnoredControls(flags, IgnoredControls);
|
||||
|
||||
}
|
||||
}
|
||||
if (PhysicsActor == null)
|
||||
{
|
||||
return;
|
||||
@@ -817,15 +825,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
// m_state = agentData.AgentData.State;
|
||||
|
||||
|
||||
lock (scriptedcontrols)
|
||||
{
|
||||
if (scriptedcontrols.Count > 0)
|
||||
{
|
||||
SendControlToScripts(flags, LastCommands);
|
||||
flags = this.RemoveIgnoredControls(flags, IgnoredControls);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (m_allowMovement)
|
||||
|
||||
Reference in New Issue
Block a user