From acea31518b00b02e2ba8b08106a76de0fbef29ab Mon Sep 17 00:00:00 2001 From: MW Date: Fri, 17 Jul 2009 14:58:54 +0000 Subject: 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.] --- OpenSim/Client/MXP/ClientStack/MXPClientView.cs | 1 + OpenSim/Client/VWoHTTP/ClientStack/VWHClientView.cs | 1 + 2 files changed, 2 insertions(+) (limited to 'OpenSim/Client') diff --git a/OpenSim/Client/MXP/ClientStack/MXPClientView.cs b/OpenSim/Client/MXP/ClientStack/MXPClientView.cs index df1b4a3..d8980c1 100644 --- a/OpenSim/Client/MXP/ClientStack/MXPClientView.cs +++ b/OpenSim/Client/MXP/ClientStack/MXPClientView.cs @@ -624,6 +624,7 @@ namespace OpenSim.Client.MXP.ClientStack public event UpdateVector OnUpdatePrimGroupPosition; public event UpdateVector OnUpdatePrimSinglePosition; public event UpdatePrimRotation OnUpdatePrimGroupRotation; + public event UpdatePrimSingleRotationPosition OnUpdatePrimSingleRotationPosition; public event UpdatePrimSingleRotation OnUpdatePrimSingleRotation; public event UpdatePrimGroupRotation OnUpdatePrimGroupMouseRotation; public event UpdateVector OnUpdatePrimScale; diff --git a/OpenSim/Client/VWoHTTP/ClientStack/VWHClientView.cs b/OpenSim/Client/VWoHTTP/ClientStack/VWHClientView.cs index c0c7625..4570395 100644 --- a/OpenSim/Client/VWoHTTP/ClientStack/VWHClientView.cs +++ b/OpenSim/Client/VWoHTTP/ClientStack/VWHClientView.cs @@ -272,6 +272,7 @@ namespace OpenSim.Client.VWoHTTP.ClientStack public event UpdateVector OnUpdatePrimSinglePosition = delegate { }; public event UpdatePrimRotation OnUpdatePrimGroupRotation = delegate { }; public event UpdatePrimSingleRotation OnUpdatePrimSingleRotation = delegate { }; + public event UpdatePrimSingleRotationPosition OnUpdatePrimSingleRotationPosition = delegate { }; public event UpdatePrimGroupRotation OnUpdatePrimGroupMouseRotation = delegate { }; public event UpdateVector OnUpdatePrimScale = delegate { }; public event UpdateVector OnUpdatePrimGroupScale = delegate { }; -- cgit v1.1