* Added the Scripted objectflag if there is a script running in a prim. Remove the flag if you delete all of the scripts in the object.

This commit is contained in:
Teravus Ovares
2008-02-07 01:52:39 +00:00
parent caa255bcdf
commit 1b8e89751a
3 changed files with 21 additions and 2 deletions

View File

@@ -670,6 +670,7 @@ namespace OpenSim.Region.Environment.Scenes
LLObject.ObjectFlags.AllowInventoryDrop |
LLObject.ObjectFlags.CreateSelected;
TrimPermissions();
ScheduleFullUpdate();
@@ -707,7 +708,11 @@ namespace OpenSim.Region.Environment.Scenes
OffsetPosition = position;
RotationOffset = rotation;
ObjectFlags = flags;
// Since we don't store script state, this is only a 'temporary' objectflag now
// If the object is scripted, the script will get loaded and this will be set again
ObjectFlags &= ~(uint)LLObject.ObjectFlags.Scripted;
TrimPermissions();
// ApplyPhysics();