mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
A few minor changes/additions/fixes.
This commit is contained in:
@@ -60,7 +60,7 @@ namespace OpenSim.Region.Environment.Modules
|
||||
{
|
||||
if (m_scene == null)
|
||||
{
|
||||
Console.WriteLine("Creating Texture download module");
|
||||
//Console.WriteLine("Creating Texture download module");
|
||||
m_thread = new Thread(new ThreadStart(ProcessTextureSenders));
|
||||
m_thread.IsBackground = true;
|
||||
m_thread.Start();
|
||||
|
||||
@@ -147,7 +147,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
|
||||
foreach (EntityBase entity in moveEntities)
|
||||
{
|
||||
entity.UpdateMovement();
|
||||
entity.UpdateMovement();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -891,7 +891,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
SceneObjectPart rootPart = sceneOb.GetChildPart(sceneOb.UUID);
|
||||
// if grass or tree, make phantom
|
||||
//rootPart.ApplySanePermissions();
|
||||
if ((rootPart.Shape.PCode == 95) || (rootPart.Shape.PCode == 255))
|
||||
if ((rootPart.Shape.PCode == 95) || (rootPart.Shape.PCode == 255) || (rootPart.Shape.PCode == 111))
|
||||
{
|
||||
rootPart.AddFlag(LLObject.ObjectFlags.Phantom);
|
||||
//rootPart.ObjectFlags += (uint)LLObject.ObjectFlags.Phantom;
|
||||
@@ -913,6 +913,17 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
}
|
||||
}
|
||||
|
||||
public void AddTree(LLVector3 scale, LLQuaternion rotation, LLVector3 position,
|
||||
libsecondlife.ObjectManager.Tree treeType, bool newTree)
|
||||
{
|
||||
PrimitiveBaseShape treeShape = new PrimitiveBaseShape();
|
||||
treeShape.PathCurve = 16;
|
||||
treeShape.PCode = newTree ? (byte)libsecondlife.ObjectManager.PCode.NewTree : (byte)libsecondlife.ObjectManager.PCode.Tree;
|
||||
treeShape.Scale = scale;
|
||||
treeShape.State = (byte)treeType;
|
||||
AddNewPrim(LLUUID.Random(), position, rotation, treeShape);
|
||||
}
|
||||
|
||||
public void RemovePrim(uint localID, LLUUID avatar_deleter)
|
||||
{
|
||||
m_innerScene.RemovePrim(localID, avatar_deleter);
|
||||
|
||||
Reference in New Issue
Block a user