Fix issue where calling llVolumeDetect(FALSE) would not remove phantom flag, causing subsequent issues if physics was re-enabled.

Added regression tests
Addresses http://opensimulator.org/mantis/view.php?id=6365
This commit is contained in:
Justin Clark-Casey (justincc)
2012-12-14 22:15:40 +00:00
parent 0b93a68030
commit 750ad2d3af
2 changed files with 42 additions and 2 deletions

View File

@@ -3993,13 +3993,14 @@ namespace OpenSim.Region.Framework.Scenes
VolumeDetectActive = true;
}
}
else
else if (SetVD != wasVD)
{
// Remove VolumeDetect in any case. Note, it's safe to call SetVolumeDetect as often as you like
// (mumbles, well, at least if you have infinte CPU powers :-))
if (pa != null)
pa.SetVolumeDetect(0);
RemFlag(PrimFlags.Phantom);
VolumeDetectActive = false;
}