fix turning off phanton always decreasing number of physical parts

avinationmerge
UbitUmarov 2012-06-21 19:05:36 +01:00
parent 909572ed86
commit c8f7cd60cd
1 changed files with 28 additions and 28 deletions

View File

@ -4496,6 +4496,7 @@ namespace OpenSim.Region.Framework.Scenes
{
if (pa != null)
{
if(wasUsingPhysics)
ParentGroup.Scene.RemovePhysicalPrim(1);
RemoveFromPhysics();
}
@ -4545,7 +4546,6 @@ namespace OpenSim.Region.Framework.Scenes
pa.SetVolumeDetect(0);
*/
if (pa.Building != building)
pa.Building = building;
}