mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
fixed the bug where changing the rotation of a selection of prims in a linkset, made each of those prims rotate around its own centre rather than around the geometric centre of the selection like they should do (and like the client expects).
This involved adding a new OnUpdatePrimSingleRotationPosition event to IClientAPI so that we can get the changed position from the client. Btw adding new events to IClientAPI is really tedious where you have to copy the change across to at least 5 or 6 other files. [Note this doesn't fix the bug where any rotation changes to the root prim (but not the whole linkset) cause rotation errors on the child prims.]
This commit is contained in:
@@ -129,6 +129,8 @@ namespace OpenSim.Framework
|
||||
|
||||
public delegate void UpdatePrimSingleRotation(uint localID, Quaternion rot, IClientAPI remoteClient);
|
||||
|
||||
public delegate void UpdatePrimSingleRotationPosition( uint localID, Quaternion rot, Vector3 pos, IClientAPI remoteClient);
|
||||
|
||||
public delegate void UpdatePrimGroupRotation(uint localID, Vector3 pos, Quaternion rot, IClientAPI remoteClient);
|
||||
|
||||
public delegate void ObjectDuplicate(uint localID, Vector3 offset, uint dupeFlags, UUID AgentID, UUID GroupID);
|
||||
@@ -633,6 +635,7 @@ namespace OpenSim.Framework
|
||||
event UpdateVector OnUpdatePrimSinglePosition;
|
||||
event UpdatePrimRotation OnUpdatePrimGroupRotation;
|
||||
event UpdatePrimSingleRotation OnUpdatePrimSingleRotation;
|
||||
event UpdatePrimSingleRotationPosition OnUpdatePrimSingleRotationPosition;
|
||||
event UpdatePrimGroupRotation OnUpdatePrimGroupMouseRotation;
|
||||
event UpdateVector OnUpdatePrimScale;
|
||||
event UpdateVector OnUpdatePrimGroupScale;
|
||||
|
||||
Reference in New Issue
Block a user