mirror of
https://github.com/opensim/opensim.git
synced 2026-08-18 20:15:37 +08:00
Start of replacing the old SceneObject/Primitive classes with the new versions.
PLEASE NOTE: that with this revision some prim related features may be broke for a while. (things like linking prims and the parcel prim count.) Also this revision may not work on mono, but that will be fixed soon.
This commit is contained in:
@@ -40,7 +40,7 @@ namespace OpenSim.Region.Scripting
|
||||
/// <summary>
|
||||
/// The object our script is supposed to be in
|
||||
/// </summary>
|
||||
public SceneObject Task
|
||||
public SceneObjectGroup Task
|
||||
{
|
||||
get { return Scene.Objects[ObjectID]; }
|
||||
}
|
||||
@@ -229,8 +229,8 @@ namespace OpenSim.Region.Scripting
|
||||
|
||||
public void osCreateLink(Key target, int parent)
|
||||
{
|
||||
if(Scene.Entities[target] is SceneObject)
|
||||
Task.AddNewChildPrims((SceneObject)Scene.Entities[target]);
|
||||
if(Scene.Entities[target] is SceneObjectGroup)
|
||||
Task.LinkToGroup((SceneObjectGroup)Scene.Entities[target]);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user