diff options
author | Melanie Thielker | 2008-09-08 02:40:20 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-09-08 02:40:20 +0000 |
commit | 490ac0be005a989c86ebde62aad137fd2da7cbd8 (patch) | |
tree | 0bd15a47dea6d2dea470d50779603970a0493fd9 /OpenSim/Region/ScriptEngine/XEngine | |
parent | Implement llEjectFromLand. (diff) | |
download | opensim-SC-490ac0be005a989c86ebde62aad137fd2da7cbd8.zip opensim-SC-490ac0be005a989c86ebde62aad137fd2da7cbd8.tar.gz opensim-SC-490ac0be005a989c86ebde62aad137fd2da7cbd8.tar.bz2 opensim-SC-490ac0be005a989c86ebde62aad137fd2da7cbd8.tar.xz |
Implement proper persistence of the following prim properties:
Floating text, Rotation, Texture animation, Particle System
This will make "Eye Candy" scripts work without modification in
XEngine. The use of the CHANGED_REGION_RESTART hack is no longer
needed. Implemented in MySQL only, hovertext also in SQLite.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index 303e5e4..bb08a60 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -856,7 +856,15 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
856 | 856 | ||
857 | foreach (IScriptInstance i in instances) | 857 | foreach (IScriptInstance i in instances) |
858 | { | 858 | { |
859 | // Stop the script, even forcibly if needed. Then flag | ||
860 | // it as shutting down and restore the previous run state | ||
861 | // for serialization, so the scripts don't come back | ||
862 | // dead after region restart | ||
863 | // | ||
864 | bool prevRunning = i.Running; | ||
859 | i.Stop(50); | 865 | i.Stop(50); |
866 | i.ShuttingDown = true; | ||
867 | i.Running = prevRunning; | ||
860 | } | 868 | } |
861 | 869 | ||
862 | DoBackup(new Object[] {0}); | 870 | DoBackup(new Object[] {0}); |