* Adds additional check to MRM rezzing - the host object must be created by the sim owner, not just owned by it.

This commit is contained in:
Adam Frisby
2009-05-12 21:42:20 +00:00
parent 3a28f748d5
commit 12d7063b0b

View File

@@ -100,7 +100,9 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
{
if (script.StartsWith("//MRM:C#"))
{
if (m_scene.GetSceneObjectPart(localID).OwnerID != m_scene.RegionInfo.MasterAvatarAssignedUUID)
if (m_scene.GetSceneObjectPart(localID).OwnerID != m_scene.RegionInfo.MasterAvatarAssignedUUID
||
m_scene.GetSceneObjectPart(localID).CreatorID != m_scene.RegionInfo.MasterAvatarAssignedUUID)
return;
script = ConvertMRMKeywords(script);