mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Fix phantom and temp flags not taking
This commit is contained in:
@@ -4307,6 +4307,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
bool wasPhantom = ((Flags & PrimFlags.Phantom) != 0);
|
||||
bool wasVD = VolumeDetectActive;
|
||||
|
||||
// m_log.DebugFormat("[SOP]: Old states: phys: {0} temp: {1} phan: {2} vd: {3}", wasUsingPhysics, wasTemporary, wasPhantom, wasVD);
|
||||
// m_log.DebugFormat("[SOP]: New states: phys: {0} temp: {1} phan: {2} vd: {3}", UsePhysics, SetTemporary, SetPhantom, SetVD);
|
||||
|
||||
if ((UsePhysics == wasUsingPhysics) && (wasTemporary == SetTemporary) && (wasPhantom == SetPhantom) && (SetVD == wasVD))
|
||||
return;
|
||||
|
||||
@@ -4336,6 +4339,11 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
SetPhantom = false;
|
||||
}
|
||||
}
|
||||
else if (wasVD)
|
||||
{
|
||||
// Correspondingly, if VD is turned off, also turn off phantom
|
||||
SetPhantom = false;
|
||||
}
|
||||
|
||||
if (UsePhysics && IsJoint())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user