mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
BulletSim: Make BSPrimLinkable 'incomplete' if any of its children are waiting for assets to load.
This commit is contained in:
@@ -58,7 +58,29 @@ public class BSPrimLinkable : BSPrimDisplaced
|
||||
{
|
||||
get
|
||||
{
|
||||
return base.IsIncomplete || Linkset.RebuildScheduled ;
|
||||
// A linkset is incomplete when base objects are incomplete, waiting for assets,
|
||||
// or being rebuilt.
|
||||
bool ret = false;
|
||||
if (base.IsIncomplete || Linkset.RebuildScheduled)
|
||||
{
|
||||
ret = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Linkset.IsRoot(this))
|
||||
{
|
||||
Linkset.ForEachMember((member) =>
|
||||
{
|
||||
if (member.PrimAssetState == PrimAssetCondition.Waiting)
|
||||
{
|
||||
ret = true;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user