remove redundant PhysActor.IsPhysical call from SOP.UpdatePrimFlags() as its done immediately afterwards in DoPhysicsPropertyUpdate()

remove-scene-viewer
Justin Clark-Casey (justincc) 2011-10-15 02:12:46 +01:00
parent 732e937379
commit f2889d7ce9
1 changed files with 0 additions and 4 deletions

View File

@ -4334,9 +4334,7 @@ namespace OpenSim.Region.Framework.Scenes
bool wasVD = VolumeDetectActive;
if ((UsePhysics == wasUsingPhysics) && (wasTemporary == SetTemporary) && (wasPhantom == SetPhantom) && (SetVD == wasVD))
{
return;
}
// Special cases for VD. VD can only be called from a script
// and can't be combined with changes to other states. So we can rely
@ -4450,8 +4448,6 @@ namespace OpenSim.Region.Framework.Scenes
}
else // it already has a physical representation
{
PhysActor.IsPhysical = UsePhysics;
DoPhysicsPropertyUpdate(UsePhysics, false); // Update physical status. If it's phantom this will remove the prim
if (!m_parentGroup.IsDeleted)