Implement the latest mesh mechanism so that rezzing the uploaded mesh now works again.

Many thanks to the aurora project for pioneering this.
This code is almost certainly not bug free, but it does at least appear to handle simple meshes (except when the viewer crashes - but it is beta!).
This commit is contained in:
Justin Clark-Casey (justincc)
2011-06-24 21:54:01 +01:00
parent 37a7c16734
commit 1a0a9d2290
2 changed files with 195 additions and 6 deletions

View File

@@ -800,7 +800,8 @@ namespace OpenSim.Region.Framework.Scenes
actor.Orientation = GetWorldRotation();
// Tell the physics engines that this prim changed.
m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(actor);
if (m_parentGroup.Scene != null)
m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(actor);
}
}
}
@@ -1085,11 +1086,13 @@ namespace OpenSim.Region.Framework.Scenes
public Vector3 AbsolutePosition
{
get {
get
{
if (IsAttachment)
return GroupPosition;
return m_offsetPosition + m_groupPosition; }
return m_offsetPosition + m_groupPosition;
}
}
public SceneObjectGroup ParentGroup