mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user