From c548f4879173ca63972eb09bcac76ca8b36e7108 Mon Sep 17 00:00:00 2001 From: Melanie Date: Wed, 30 May 2012 19:32:02 +0200 Subject: [PATCH] Guard setting the building flag --- OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs index 628b7278db..ac049b2cdb 100644 --- a/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs @@ -3320,6 +3320,10 @@ namespace OpenSim.Region.Physics.OdePlugin protected void changeBuilding(bool newbuilding) { + // Check if we need to do anything + if (newbuilding == m_building) + return; + if ((bool)newbuilding) { m_building = true;