Initialize the Rezzing object to UUID.Zero

0.7.4.1
Melanie 2012-08-02 22:34:46 +01:00
parent cd2c5843a8
commit 68406ab8f9
1 changed files with 4 additions and 3 deletions

View File

@ -26,6 +26,7 @@
*/ */
using System; using System;
using System.ComponentModel;
using System.Collections.Generic; using System.Collections.Generic;
using System.Drawing; using System.Drawing;
using System.IO; using System.IO;
@ -641,6 +642,7 @@ namespace OpenSim.Region.Framework.Scenes
/// </summary> /// </summary>
public SceneObjectGroup() public SceneObjectGroup()
{ {
RezzingObjectID = UUID.Zero;
} }
/// <summary> /// <summary>
@ -648,7 +650,7 @@ namespace OpenSim.Region.Framework.Scenes
/// The original SceneObjectPart will be used rather than a copy, preserving /// The original SceneObjectPart will be used rather than a copy, preserving
/// its existing localID and UUID. /// its existing localID and UUID.
/// </summary> /// </summary>
public SceneObjectGroup(SceneObjectPart part) public SceneObjectGroup(SceneObjectPart part) : this()
{ {
SetRootPart(part); SetRootPart(part);
} }
@ -656,9 +658,8 @@ namespace OpenSim.Region.Framework.Scenes
/// <summary> /// <summary>
/// Constructor. This object is added to the scene later via AttachToScene() /// Constructor. This object is added to the scene later via AttachToScene()
/// </summary> /// </summary>
public SceneObjectGroup(UUID ownerID, Vector3 pos, Quaternion rot, PrimitiveBaseShape shape) public SceneObjectGroup(UUID ownerID, Vector3 pos, Quaternion rot, PrimitiveBaseShape shape) :this(new SceneObjectPart(ownerID, shape, pos, rot, Vector3.Zero))
{ {
SetRootPart(new SceneObjectPart(ownerID, shape, pos, rot, Vector3.Zero));
} }
/// <summary> /// <summary>