diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 3 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 12 |
2 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index 82a6b94..62ad2cd 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | |||
@@ -1406,6 +1406,9 @@ namespace OpenSim.Region.Environment.Scenes | |||
1406 | group.ResetIDs(); | 1406 | group.ResetIDs(); |
1407 | AddEntity(group); | 1407 | AddEntity(group); |
1408 | 1408 | ||
1409 | // Set the startup parameter for on_rez event and llGetStartParameter() function | ||
1410 | group.StartParameter = param; | ||
1411 | |||
1409 | // we set it's position in world. | 1412 | // we set it's position in world. |
1410 | group.AbsolutePosition = pos; | 1413 | group.AbsolutePosition = pos; |
1411 | 1414 | ||
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 3844793..bc99aa4 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | |||
@@ -30,6 +30,7 @@ using System.Collections.Generic; | |||
30 | using System.Drawing; | 30 | using System.Drawing; |
31 | using System.IO; | 31 | using System.IO; |
32 | using System.Xml; | 32 | using System.Xml; |
33 | using System.Xml.Serialization; | ||
33 | using Axiom.Math; | 34 | using Axiom.Math; |
34 | using libsecondlife; | 35 | using libsecondlife; |
35 | using libsecondlife.Packets; | 36 | using libsecondlife.Packets; |
@@ -109,6 +110,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
109 | private bool m_scriptListens_atTarget = false; | 110 | private bool m_scriptListens_atTarget = false; |
110 | private bool m_scriptListens_notAtTarget = false; | 111 | private bool m_scriptListens_notAtTarget = false; |
111 | 112 | ||
113 | private int m_startparameter = 0; | ||
112 | 114 | ||
113 | #region Properties | 115 | #region Properties |
114 | 116 | ||
@@ -122,6 +124,16 @@ namespace OpenSim.Region.Environment.Scenes | |||
122 | protected bool m_isSelected = false; | 124 | protected bool m_isSelected = false; |
123 | 125 | ||
124 | /// <summary> | 126 | /// <summary> |
127 | /// Set start parameter for on_rez event and llGetStartParameter() | ||
128 | /// </summary> | ||
129 | [XmlIgnore] | ||
130 | public int StartParameter | ||
131 | { | ||
132 | get { return m_startparameter; } | ||
133 | set { m_startparameter = value; } | ||
134 | } | ||
135 | |||
136 | /// <summary> | ||
125 | /// | 137 | /// |
126 | /// </summary> | 138 | /// </summary> |
127 | public int PrimCount | 139 | public int PrimCount |