aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Profiles/AvatarProfilesModule.cs13
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs4
2 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Profiles/AvatarProfilesModule.cs b/OpenSim/Region/CoreModules/Avatar/Profiles/AvatarProfilesModule.cs
index 0f58788..8cf58c6 100644
--- a/OpenSim/Region/CoreModules/Avatar/Profiles/AvatarProfilesModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Profiles/AvatarProfilesModule.cs
@@ -43,6 +43,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Profiles
43 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 43 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
44 private Scene m_scene; 44 private Scene m_scene;
45 private IProfileModule m_profileModule = null; 45 private IProfileModule m_profileModule = null;
46 private bool m_enabled = true;
46 47
47 public AvatarProfilesModule() 48 public AvatarProfilesModule()
48 { 49 {
@@ -52,12 +53,24 @@ namespace OpenSim.Region.CoreModules.Avatar.Profiles
52 53
53 public void Initialise(Scene scene, IConfigSource config) 54 public void Initialise(Scene scene, IConfigSource config)
54 { 55 {
56 IConfig profileConfig = config.Configs["Profile"];
57 if (profileConfig != null)
58 {
59 if (profileConfig.GetString("Module", Name) != Name)
60 {
61 m_enabled = false;
62 return;
63 }
64 }
65
55 m_scene = scene; 66 m_scene = scene;
56 m_scene.EventManager.OnNewClient += NewClient; 67 m_scene.EventManager.OnNewClient += NewClient;
57 } 68 }
58 69
59 public void PostInitialise() 70 public void PostInitialise()
60 { 71 {
72 if (!m_enabled)
73 return;
61 m_profileModule = m_scene.RequestModuleInterface<IProfileModule>(); 74 m_profileModule = m_scene.RequestModuleInterface<IProfileModule>();
62 } 75 }
63 76
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index cc903e0..c9d6742 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -6606,6 +6606,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6606 // retain pathcurve 6606 // retain pathcurve
6607 shapeBlock.PathCurve = part.Shape.PathCurve; 6607 shapeBlock.PathCurve = part.Shape.PathCurve;
6608 6608
6609 part.Shape.SculptEntry = false;
6609 return shapeBlock; 6610 return shapeBlock;
6610 } 6611 }
6611 6612
@@ -6657,6 +6658,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6657 shapeBlock.PathShearX = (byte)(100 * topshear.x); 6658 shapeBlock.PathShearX = (byte)(100 * topshear.x);
6658 shapeBlock.PathShearY = (byte)(100 * topshear.y); 6659 shapeBlock.PathShearY = (byte)(100 * topshear.y);
6659 6660
6661 part.Shape.SculptEntry = false;
6660 part.UpdateShape(shapeBlock); 6662 part.UpdateShape(shapeBlock);
6661 } 6663 }
6662 6664
@@ -6701,6 +6703,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6701 shapeBlock.ProfileBegin = (ushort)(50000 * dimple.x); 6703 shapeBlock.ProfileBegin = (ushort)(50000 * dimple.x);
6702 shapeBlock.ProfileEnd = (ushort)(50000 * (1 - dimple.y)); 6704 shapeBlock.ProfileEnd = (ushort)(50000 * (1 - dimple.y));
6703 6705
6706 part.Shape.SculptEntry = false;
6704 part.UpdateShape(shapeBlock); 6707 part.UpdateShape(shapeBlock);
6705 } 6708 }
6706 6709
@@ -6824,6 +6827,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6824 } 6827 }
6825 shapeBlock.PathSkew = (sbyte)(100 * skew); 6828 shapeBlock.PathSkew = (sbyte)(100 * skew);
6826 6829
6830 part.Shape.SculptEntry = false;
6827 part.UpdateShape(shapeBlock); 6831 part.UpdateShape(shapeBlock);
6828 } 6832 }
6829 6833