From fec8aef03a3f924c4a85fbea024fefae5400c8b7 Mon Sep 17 00:00:00 2001
From: Jeff Ames
Date: Sat, 14 Mar 2009 22:55:17 +0000
Subject: Thanks rtomita for a patch to add handlers for prim scale updates
 from libomv-based clients. (#3291)

---
 .../Region/ClientStack/LindenUDP/LLClientView.cs   | 25 ++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
index 10e5c5a..ace09f0 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
@@ -4066,6 +4066,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP
                                     handlerUpdatePrimSingleRotation(localId, rot2, this);
                                 }
                                 break;
+                            case 4:
+                            case 20:
+                                Vector3 scale4 = new Vector3(block.Data, 0);
+
+                                handlerUpdatePrimScale = OnUpdatePrimScale;
+                                if (handlerUpdatePrimScale != null)
+                                {
+//                                     m_log.Debug("new scale is " + scale4.X + " , " + scale4.Y + " , " + scale4.Z);
+                                    handlerUpdatePrimScale(localId, scale4, this);
+                                }
+                                break;
                             case 5:
 
                                 Vector3 scale1 = new Vector3(block.Data, 12);
@@ -4117,6 +4128,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP
                                     handlerUpdatePrimGroupRotation(localId, pos3, rot4, this);
                                 }
                                 break;
+                            case 12:
+                            case 28:
+                                Vector3 scale7 = new Vector3(block.Data, 0);
+
+                                handlerUpdatePrimGroupScale = OnUpdatePrimGroupScale;
+                                if (handlerUpdatePrimGroupScale != null)
+                                {
+//                                     m_log.Debug("new scale is " + scale7.X + " , " + scale7.Y + " , " + scale7.Z);
+                                    handlerUpdatePrimGroupScale(localId, scale7, this);
+                                }
+                                break;
                             case 13:
                                 Vector3 scale2 = new Vector3(block.Data, 12);
                                 Vector3 pos4 = new Vector3(block.Data, 0);
@@ -4169,6 +4191,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
                                     }
                                 }
                                 break;
+                            default:
+                                m_log.Debug("[CLIENT] MultipleObjUpdate recieved an unknown packet type: " + (block.Type));
+                                break;
                         }
                     }
                 }
-- 
cgit v1.1