From 1b8e89751a40ba7bcb1e068f60d4d5228d31f4ce Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Thu, 7 Feb 2008 01:52:39 +0000 Subject: * 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. --- OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 4456fce..0a9d21a 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -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(); -- cgit v1.1