mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
ubode: fix physical prims space destroy
This commit is contained in:
@@ -1446,7 +1446,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
||||
//waitForSpaceUnlock(currentspace);
|
||||
SafeNativeMethods.SpaceRemove(currentspace, geom);
|
||||
|
||||
if (SafeNativeMethods.SpaceGetSublevel(currentspace) > 2 && SafeNativeMethods.SpaceGetNumGeoms(currentspace) == 0)
|
||||
if (SafeNativeMethods.SpaceGetSublevel(currentspace) == 0 && SafeNativeMethods.SpaceGetNumGeoms(currentspace) == 0)
|
||||
{
|
||||
SafeNativeMethods.SpaceDestroy(currentspace);
|
||||
}
|
||||
@@ -1467,7 +1467,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
||||
//waitForSpaceUnlock(currentspace);
|
||||
SafeNativeMethods.SpaceRemove(currentspace, geom);
|
||||
|
||||
if (SafeNativeMethods.SpaceGetSublevel(currentspace) > 2 && SafeNativeMethods.SpaceGetNumGeoms(currentspace) == 0)
|
||||
if (SafeNativeMethods.SpaceGetSublevel(currentspace) == 0 && SafeNativeMethods.SpaceGetNumGeoms(currentspace) == 0)
|
||||
{
|
||||
SafeNativeMethods.SpaceDestroy(currentspace);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user