mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
ubode: fix physical prims space destroy
This commit is contained in:
@@ -1582,7 +1582,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);
|
||||
}
|
||||
@@ -1603,7 +1603,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