From b842ab3927a2ab8252fc624cf75933cd581a4dc1 Mon Sep 17 00:00:00 2001 From: MW Date: Fri, 22 Feb 2008 18:27:08 +0000 Subject: [PATCH] fixed it so that the different types of trees now work (show up in the clients), problem is that we don't seem to be persisting PrimitiveBaseShape.State in the datastore, so after restart of server, they all turn back into pine trees. --- OpenSim/Region/ClientStack/ClientView.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index 9f6af4b932..2cedc81c69 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs @@ -2079,7 +2079,11 @@ namespace OpenSim.Region.ClientStack SetDefaultPrimPacketValues(objupdate); objupdate.UpdateFlags = flags; SetPrimPacketShapeData(objupdate, primShape); - + if ((primShape.PCode == 111) || (primShape.PCode == 255)) + { + objupdate.Data = new byte[1]; + objupdate.Data[0] = primShape.State; + } return objupdate; }