Axiom.SceneManagers.Bsp.BspLevel.NotifyObjectDetached C# (CSharp) Method

NotifyObjectDetached() private method

Internal method, makes sure an object is removed from the leaves when detached from a node.
private NotifyObjectDetached ( Axiom.Core.MovableObject obj ) : void
obj Axiom.Core.MovableObject
return void
		internal void NotifyObjectDetached( MovableObject obj )
		{
			IEnumerator objnodes = objectToNodeMap.Find( obj );

			if ( objnodes == null )
				return;

			while ( objnodes.MoveNext() )
				( (BspNode)objnodes.Current ).RemoveObject( obj );

			objectToNodeMap.Clear( obj );
		}
		#endregion Public methods