From 899ab4cd326ef6967cc83d68aadb4f288da5487b Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Tue, 31 Jul 2007 19:14:17 +0000 Subject: * Fix for issue#246/251 - Rescaling primitives has offset problems. (Thanks DharmaVoyager!) --- OpenSim/Region/ClientStack/ClientView.PacketHandlers.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'OpenSim') diff --git a/OpenSim/Region/ClientStack/ClientView.PacketHandlers.cs b/OpenSim/Region/ClientStack/ClientView.PacketHandlers.cs index 27265cf..6b94ec1 100644 --- a/OpenSim/Region/ClientStack/ClientView.PacketHandlers.cs +++ b/OpenSim/Region/ClientStack/ClientView.PacketHandlers.cs @@ -151,6 +151,11 @@ namespace OpenSim.Region.ClientStack LLVector3 scale = new LLVector3(multipleupdate.ObjectData[i].Data, 12); //Console.WriteLine("new scale is " + scale.X + " , " + scale.Y + " , " + scale.Z); OnUpdatePrimScale(multipleupdate.ObjectData[i].ObjectLocalID, scale, this); + + // Change the position based on scale (for bug number 246) + libsecondlife.LLVector3 pos = new LLVector3(multipleupdate.ObjectData[i].Data, 0); + // System.Console.WriteLine("new movement position is " + pos.X + " , " + pos.Y + " , " + pos.Z); + OnUpdatePrimSinglePosition(multipleupdate.ObjectData[i].ObjectLocalID, pos, this); } } else if (multipleupdate.ObjectData[i].Type == 29)//group scale from mouse -- cgit v1.1