[Simian]
* Clearing up confusion with Agent.Avatar by making it a SimulationObject that is passed in through the constructor. This should prevent duplicate notions of an avatar in the scene * Fixed the "you don't own this object" issue after moving a prim. The fix is rather hacky and will be replaced when we stop sending full object updates for every change git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2465 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -115,12 +115,12 @@ namespace Simian
|
||||
return position;
|
||||
}
|
||||
|
||||
public Quaternion GetSimulatorRotation(ISceneProvider scene)
|
||||
public Quaternion GetSimulatorRotation()
|
||||
{
|
||||
SimulationObject parent;
|
||||
Quaternion rotation = Prim.Rotation;
|
||||
|
||||
if (Prim.ParentID != 0 && scene.TryGetObject(Prim.ParentID, out parent))
|
||||
if (Prim.ParentID != 0 && Server.Scene.TryGetObject(Prim.ParentID, out parent))
|
||||
rotation *= parent.Prim.Rotation;
|
||||
|
||||
return rotation;
|
||||
|
||||
Reference in New Issue
Block a user